[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.19,1.20

markster at lists.digium.com markster at lists.digium.com
Thu Mar 31 21:47:42 CST 2005


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv28010/pbx

Modified Files:
	pbx_spool.c 
Log Message:
Fix spool files that lack their last return


Index: pbx_spool.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_spool.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- pbx_spool.c	2 Feb 2005 02:54:15 -0000	1.19
+++ pbx_spool.c	1 Apr 2005 03:41:08 -0000	1.20
@@ -97,7 +97,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