From: Tilghman Lesher Date: Tue, 5 Sep 2006 17:23:50 +0000 (+0000) Subject: Missing field terminator X-Git-Tag: 1.4.0-beta1~177 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfef0a23ff1256e88eee5dd8887908f876e3a918;p=thirdparty%2Fasterisk.git Missing field terminator git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42034 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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';