From 3b0f89dae6361813a9f5776091a0a2e231e4bd71 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sun, 1 Jul 2007 23:53:13 +0000 Subject: [PATCH] Merged revisions 72806 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r72806 | russell | 2007-07-01 18:52:45 -0500 (Sun, 01 Jul 2007) | 13 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@72807 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/pbx_spool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index 2888efaeb4..6c045d3068 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); -- 2.47.2