The branch, v3-3-test has been updated via cc000a3 s3/swat: use strlcat instead of strncat to fix build on old Linux distros from eb4ab13 s3:web/swat: use strtoll() instead of atoi/atol/atoll
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log ----------------------------------------------------------------- commit cc000a3566ec886f7c8f274b9a7fc5e6cf133fad Author: Björn Jacke <b...@sernet.de> Date: Thu Aug 4 16:25:08 2011 +0200 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 <me...@samba.org> Autobuild-User: Björn Jacke <b...@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). ----------------------------------------------------------------------- Summary of changes: source/web/swat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/web/swat.c b/source/web/swat.c index bc2497f..21e33e1 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)); } } -- Samba Shared Repository