From 7f49539a70767da0bf456efa22a8f2fe3bc2f366 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 4 Aug 2011 16:25:08 +0200 Subject: [PATCH] s3/swat: use strlcat instead of strncat to fix build on old Linux distros MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Autobuild-User: Björn Jacke 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) (cherry picked from commit b941edf9c20bd6a92aec2a62be5b830db1194ce8) --- source3/web/swat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/web/swat.c b/source3/web/swat.c index 85bc6bcd641..bfa003e7f60 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)); } } -- 2.34.1