Fix off-by-one buglet
authorMark Spencer <markster@digium.com>
Tue, 2 Nov 2004 21:38:38 +0000 (21:38 +0000)
committerMark Spencer <markster@digium.com>
Tue, 2 Nov 2004 21:38:38 +0000 (21:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4147 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/dundi-parser.c

index 8647183..2ea804f 100755 (executable)
@@ -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';
 }