]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - longline.c
Fails if no file names can be found when file globbing is on
[thirdparty/sarg.git] / longline.c
index e77f3dfc1b143ccaf6ec873ead562566fe071374..ff8b00005d18c0c3d403f0ab7ce670d1b9e0e6fa 100644 (file)
@@ -133,12 +133,12 @@ char *longline_read(FILE *fp_in,longline line)
                if (line->length>=line->size) {
                        line->size+=LINE_BUFFER_SIZE_INCREMENT;
                        if (line->size>=MAX_LINE_BUFFER_SIZE) {
-                               debuga(_("A text line is more than %d bytes long denoting a corrupted file\n"),MAX_LINE_BUFFER_SIZE);
+                               debuga(__FILE__,__LINE__,_("A text line is more than %d bytes long denoting a corrupted file\n"),MAX_LINE_BUFFER_SIZE);
                                exit(EXIT_FAILURE);
                        }
                        newbuf=realloc(line->buffer,line->size);
                        if (!newbuf) {
-                               debuga(_("Not enough memory to read one more line from the file\n"));
+                               debuga(__FILE__,__LINE__,_("Not enough memory to read one more line from the file\n"));
                                exit(EXIT_FAILURE);
                        }
                        line->buffer=newbuf;
@@ -151,7 +151,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 file\n"));
+                                       debuga(__FILE__,__LINE__,_("Not enough memory to read one more line from the file\n"));
                                        exit(EXIT_FAILURE);
                                }
                                line->buffer=newbuf;