summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2011-08-04 16:25:08 +0200
committerKarolin Seeger <kseeger@samba.org>2011-08-09 13:53:25 +0200
commitcc000a3566ec886f7c8f274b9a7fc5e6cf133fad (patch)
tree9e717dce1af9df8a6f34b877e360580c6bd7001c
parenteb4ab1340e9926575646e107db406d1aa7ddb0f2 (diff)
downloadsamba-v3-3-test.tar.gz
samba-v3-3-test.tar.xz
samba-v3-3-test.zip
s3/swat: use strlcat instead of strncat to fix build on old Linux distrosv3-3-test
SLES 9's glibc for example had weird macros where the use of strncat resulted in the use of strcat which we don't allow. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Aug 4 17:50:24 CEST 2011 on sn-devel-104 Fix bug #8362 (build issue on old glibc systems).
-rw-r--r--source/web/swat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/web/swat.c b/source/web/swat.c
index bc2497f9bbf..21e33e14227 100644
--- a/source/web/swat.c
+++ b/source/web/swat.c
@@ -167,7 +167,7 @@ void get_xsrf_token(const char *username, const char *pass,
char tmp[3];
snprintf(tmp, sizeof(tmp), "%02x", token[i]);
- strncat(token_str, tmp, sizeof(tmp));
+ strlcat(token_str, tmp, sizeof(tmp));
}
}