From 959516d61bc6ee7cdd12409dde0ec00044208f1b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 29 Mar 2012 17:13:07 -0700 Subject: More strlcat/strlcpy truncate checks. --- source3/web/swat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/web') diff --git a/source3/web/swat.c b/source3/web/swat.c index 34974b400f..0e17b015e9 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -176,7 +176,8 @@ void get_xsrf_token(const char *username, const char *pass, char tmp[3]; snprintf(tmp, sizeof(tmp), "%02x", token[i]); - strlcat(token_str, tmp, sizeof(tmp)); + /* FIXME ! Truncate check. JRA. */ + (void)strlcat(token_str, tmp, sizeof(tmp)); } } -- cgit