]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
process the last line, even if it doesn't have a newline char (bug #3919)
authorRussell Bryant <russell@russellbryant.com>
Fri, 1 Apr 2005 04:17:42 +0000 (04:17 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 1 Apr 2005 04:17:42 +0000 (04:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5334 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CHANGES
pbx/pbx_spool.c

diff --git a/CHANGES b/CHANGES
index 60cbe74cd37a3554da40153d4cf862cb0e45dd99..9e10cec7942dbbbf243c03d0e368b51bd1757461 100755 (executable)
--- a/CHANGES
+++ b/CHANGES
@@ -19,6 +19,8 @@
     -- A line was missing for the autosupport script that caused "make rpm" to fail
     -- Fixed a problem with wav formatting that prevented files from being played
        in some media players
+    -- Fixed if the last line of text in a file for the call spool did not contain
+       a new line, it would not be processed
 
 Asterisk 1.0.7
 
index fd51926b0c80331777230bc9381a87a422b5e0b8..0c1249d06c3906db50f71827039dd9e885b21e5c 100755 (executable)
@@ -95,7 +95,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f)
        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, '#'))) {