diff options
author | Björn Jacke <bj@sernet.de> | 2011-08-04 16:25:08 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-08-09 13:53:25 +0200 |
commit | cc000a3566ec886f7c8f274b9a7fc5e6cf133fad (patch) | |
tree | 9e717dce1af9df8a6f34b877e360580c6bd7001c | |
parent | eb4ab1340e9926575646e107db406d1aa7ddb0f2 (diff) | |
download | samba-v3-3-test.tar.gz |
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.c | 2 |
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)); } } |