Missing field terminator
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 5 Sep 2006 17:23:50 +0000 (17:23 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 5 Sep 2006 17:23:50 +0000 (17:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42034 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_odbc.c

index 30f873e..6051f8c 100644 (file)
@@ -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';