Skip to content
Snippets Groups Projects
Commit 5d93698d authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix off-by-one buglet

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent fa161c49
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,7 @@ static void dump_string(char *output, int maxlen, void *value, int len)
static void dump_cbypass(char *output, int maxlen, void *value, int len)
{
maxlen--;
strncpy(output, "Bypass Caches", maxlen);
output[maxlen] = '\0';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment