[asterisk-commits] russell: branch 1.2 r72805 - /branches/1.2/pbx/pbx_spool.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Jul 1 18:51:36 CDT 2007
Author: russell
Date: Sun Jul 1 18:51:34 2007
New Revision: 72805
URL: http://svn.digium.com/view/asterisk?view=rev&rev=72805
Log:
When appending lines to call files to keep track of retries, write a leading
newline just in case the original call file did not have a newline at the end.
This fix is in response to a problem I saw reported on the asterisk-users
mailing list.
Modified:
branches/1.2/pbx/pbx_spool.c
Modified: branches/1.2/pbx/pbx_spool.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/pbx/pbx_spool.c?view=diff&rev=72805&r1=72804&r2=72805
==============================================================================
--- branches/1.2/pbx/pbx_spool.c (original)
+++ branches/1.2/pbx/pbx_spool.c Sun Jul 1 18:51:34 2007
@@ -240,7 +240,7 @@
if (fd > -1) {
f = fdopen(fd, "a");
if (f) {
- fprintf(f, "%s: %ld %d (%ld)\n", s, (long)ast_mainpid, o->retries, (long) now);
+ fprintf(f, "\n%s: %ld %d (%ld)\n", s, (long)ast_mainpid, o->retries, (long) now);
fclose(f);
} else
close(fd);
More information about the asterisk-commits
mailing list