From bfef0a23ff1256e88eee5dd8887908f876e3a918 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 5 Sep 2006 17:23:50 +0000 Subject: [PATCH] Missing field terminator git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42034 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_odbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index 30f873e9f6..6051f8ceab 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';