diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-01 23:52:45 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-01 23:52:45 +0000 |
commit | 6f45206d70f742d7f88cbe93c461c6137cf09c42 (patch) | |
tree | a8fb94723a8fd43dea41f8fcb8219383ea192e5d /pbx | |
parent | aac18414b239e5b5d966f8cdc11bbbb09fe7b1ff (diff) |
Merged revisions 72805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r72805 | russell | 2007-07-01 18:51:34 -0500 (Sun, 01 Jul 2007) | 5 lines
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.4@72806 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_spool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index 4d6e955d8..853f6a359 100644 --- a/pbx/pbx_spool.c +++ b/pbx/pbx_spool.c @@ -257,7 +257,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); |