aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-01 23:51:34 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-01 23:51:34 +0000
commit02d86bad977559c9a644599fd030bce2de0b5f6d (patch)
treeb904f044467919dc63d4d2f392fe1961d7fc180b /pbx
parentd791291f69d154b350d207bba428b6f6f0cd1be8 (diff)
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. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72805 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_spool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index 0fac2b1a9..1141b85a1 100644
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -240,7 +240,7 @@ static void safe_append(struct outgoing *o, time_t now, char *s)
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);