summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/web/swat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/web/swat.c b/source/web/swat.c
index bc2497f9bbf..21e33e14227 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));
}
}