diff options
-rw-r--r-- | handle.c | 4 | ||||
-rw-r--r-- | pf.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -100,7 +100,7 @@ copy_to_scratch(char *s, int len) static void badheader(void) { - fprintf (stderr, "%s: %s:%d: bad ", ProgramName, inputFilename, lineno); + fprintf (stderr, "%s: %s:%d: bad ", ProgramName, inputFilename, lineno+1); parse_errors++; } @@ -179,7 +179,7 @@ handle_line(char *line, /* string to parse */ } fprintf (stderr, "%s: unknown command on line %s:%d\n", - ProgramName, inputFilename, lineno); + ProgramName, inputFilename, lineno+1); parse_errors++; } @@ -114,7 +114,7 @@ void process_line (buffer) if (i >= 0) cp[len = (i+1)] = '\0'; /* nul terminate */ if (verbose) { - printf ("! %d: %s\n", lineno, cp); + printf ("! %d: %s\n", lineno+1, cp); } /* handle input */ |