mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Fix off-by-one buglet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user