summaryrefslogtreecommitdiffstats
path: root/source3/web
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2011-08-04 16:25:08 +0200
committerBjoern Jacke <bj@sernet.de>2011-08-04 17:50:24 +0200
commitd3b4d75364210e2d2a4a1cd806f28b0021f22909 (patch)
tree11de0868ee2b599d583277725143c0a3ff60410e /source3/web
parent68e7b9307adabd9e3e12e95e0995051d366d8cf5 (diff)
downloadsamba-d3b4d75364210e2d2a4a1cd806f28b0021f22909.tar.gz
samba-d3b4d75364210e2d2a4a1cd806f28b0021f22909.tar.xz
samba-d3b4d75364210e2d2a4a1cd806f28b0021f22909.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
Diffstat (limited to 'source3/web')
-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 f95546678e..69d9fec64f 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -175,7 +175,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));
}
}