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-10-24 19:15:08 +0200
commita7cac5ff9fe4ef025d09f3f243d9a77afd4ddd27 (patch)
tree4d56561dbe74876d01e6c5f1cd3def172fc71d8e
parentf226e03a19a2337c189e91791d66cf3356ce23f1 (diff)
downloadsamba-a7cac5ff9fe4ef025d09f3f243d9a77afd4ddd27.tar.gz
samba-a7cac5ff9fe4ef025d09f3f243d9a77afd4ddd27.tar.xz
samba-a7cac5ff9fe4ef025d09f3f243d9a77afd4ddd27.zip
s3/swat: use strlcat instead of strncat to fix build on old Linux distros
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 (cherry picked from commit d3b4d75364210e2d2a4a1cd806f28b0021f22909) Fix bug #8362 (build issue on old glibc systems). (cherry picked from commit 87fa72a5202fe3780d4a61289bf755027cd078f4) (cherry picked from commit 552ccc6588b0744ae9b3731b1406749baea03d5a)
-rw-r--r--source3/web/swat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 3a091528ba4..754e3cee732 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -168,7 +168,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));
}
}