From: Frédéric Marchal Date: Sun, 15 Jul 2012 08:49:00 +0000 (+0200) Subject: Update the messages when an error is detected while reading a line X-Git-Tag: v2.3.3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=110ed1b4cbbd970c4cab5c96f15861eb85e1a774;p=thirdparty%2Fsarg.git Update the messages when an error is detected while reading a line 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. --- diff --git a/longline.c b/longline.c index b456bc8..c8feaef 100644 --- a/longline.c +++ b/longline.c @@ -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;