]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Update the messages when an error is detected while reading a line
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 08:49:00 +0000 (10:49 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 08:49:00 +0000 (10:49 +0200)
The module to read long text lines may read any file. It is not restricted
to reading the input log file. Therefore, the error messages must not claim
that the error is in the input log file.

longline.c

index b456bc82d25ad2bb33173d244053e6f89f12ee00..c8feaef3995cfa39dde9ddf5f4052576a781f5ab 100644 (file)
@@ -110,7 +110,7 @@ char *longline_read(FILE *fp_in,longline line)
                        line->size+=8192;
                        newbuf=realloc(line->buffer,line->size);
                        if (!newbuf) {
-                               debuga(_("Not enough memory to read one more line from the input log file\n"));
+                               debuga(_("Not enough memory to read one more line from the file\n"));
                                exit(EXIT_FAILURE);
                        }
                        line->buffer=newbuf;
@@ -123,7 +123,7 @@ char *longline_read(FILE *fp_in,longline line)
                                line->size++;
                                newbuf=realloc(line->buffer,line->size);
                                if (!newbuf) {
-                                       debuga(_("Not enough memory to read one more line from the input log file\n"));
+                                       debuga(_("Not enough memory to read one more line from the file\n"));
                                        exit(EXIT_FAILURE);
                                }
                                line->buffer=newbuf;