From 110ed1b4cbbd970c4cab5c96f15861eb85e1a774 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 15 Jul 2012 10:49:00 +0200 Subject: [PATCH] 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. --- longline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2