[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.16,1.16.2.1
russell at lists.digium.com
russell at lists.digium.com
Thu Mar 31 22:24:17 CST 2005
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv28698/pbx
Modified Files:
Tag: v1-0
pbx_spool.c
Log Message:
process the last line, even if it doesn't have a newline char (bug #3919)
Index: pbx_spool.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_spool.c,v
retrieving revision 1.16
retrieving revision 1.16.2.1
diff -u -d -r1.16 -r1.16.2.1
--- pbx_spool.c 8 Aug 2004 17:15:02 -0000 1.16
+++ pbx_spool.c 1 Apr 2005 04:17:42 -0000 1.16.2.1
@@ -95,7 +95,7 @@
while(!feof(f)) {
fgets(buf, sizeof(buf), f);
lineno++;
- if (!feof(f)) {
+ if (!ast_strlen_zero(buf)) {
/* Trim comments */
c = buf;
while ((c = strchr(c, '#'))) {
More information about the svn-commits
mailing list