diff options
-rw-r--r-- | funcs/func_odbc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index 30f873e9f..6051f8cea 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -310,6 +310,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf } buf[buflen - 1] = ','; + buf[buflen] = '\0'; } /* Trim trailing comma */ buf[buflen - 1] = '\0'; |