]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - lib/html_quote.c
Source Format Enforcement (#1234)
[thirdparty/squid.git] / lib / html_quote.c
index d5158e97634d54df6b858ad9ca389e21160a2ad8..8b93b45a2f5da24c307105b536c925cd78d45056 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -90,7 +90,7 @@ html_quote(const char *string)
         }
         if (escape) {
             /* Ok, An escaped form was found above. Use it */
-            strncpy(dst, escape, 6);
+            strncpy(dst, escape, 7);
             dst += strlen(escape);
         } else {
             /* Apparently there is no need to escape this character */