Fix silly pbx spool buglet (bug #2007)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-07-09 21:34:24 +00:00
parent 9e0e3799bf
commit fb3f2062fa

View File

@@ -116,7 +116,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
if (c) {
*c = '\0';
c++;
while(*c < 33)
while ((*c) && (*c < 33))
c++;
#if 0
printf("'%s' is '%s' at line %d\n", buf, c, lineno);