summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--handle.c4
-rw-r--r--pf.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/handle.c b/handle.c
index 09f40cb..4cd7554 100644
--- a/handle.c
+++ b/handle.c
@@ -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++;
}
diff --git a/pf.c b/pf.c
index cfa2a90..621fc55 100644
--- a/pf.c
+++ b/pf.c
@@ -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 */