]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - tools/cachemgr.cc
Fix xstrndup() documentation, callers. Disclosed implementation bugs.
[thirdparty/squid.git] / tools / cachemgr.cc
index e16ce1bb5786917d50ee7667cc78a383ea8d91d4..bcb64d97daa0870fc9bd7b732695beb843a25926 100644 (file)
@@ -440,7 +440,7 @@ munge_menu_line(MemBuf &out, const char *buf, cachemgr_request * req)
         return;
     }
 
-    buf_copy = x = xstrndup(buf, bufLen);
+    buf_copy = x = xstrndup(buf, bufLen+1);
 
     a = xstrtok(&x, '\t');