aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--msg.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d76c3e9a..79d77624 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-04-24 Arnold D. Robbins <arnold@skeeve.com>
+
+ * msg.c (msg): Use %ld for the line number value. Thanks to
+ Michal Jaegermann for the report.
+
2019-04-23 Arnold D. Robbins <arnold@skeeve.com>
* config.sub: Updated from GNULIB.
diff --git a/msg.c b/msg.c
index ca988ad3..32f152ab 100644
--- a/msg.c
+++ b/msg.c
@@ -74,7 +74,7 @@ err(bool isfatal, const char *s, const char *emsg, va_list argp)
else
(void) fprintf(stderr, _("cmd. line:"));
- (void) fprintf(stderr, "%d: ", sourceline + lineno_val);
+ (void) fprintf(stderr, "%ld: ", sourceline + lineno_val);
}
#ifdef HAVE_MPFR