From 4eb91d0bbeda5b05b6663c5eacd1bdb9e5560718 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 31 Jul 2005 05:55:00 +0000 Subject: [PATCH] (read_varables) Fix msg() bug found by -Wformat. --- src/ChangeLog | 4 ++++ src/pfm-read.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4ea2679c4d..7cee2d7b0e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +Sat Jul 30 22:52:09 2005 Ben Pfaff + + * pfm-read.c: (read_variables) Fix msg() bug found by -Wformat. + Sat Jul 30 22:50:57 2005 Ben Pfaff * histogram.c: Include . diff --git a/src/pfm-read.c b/src/pfm-read.c index 0d5fbcc980..4d95eba22a 100644 --- a/src/pfm-read.c +++ b/src/pfm-read.c @@ -523,7 +523,7 @@ read_variables (struct pfm_reader *r, struct dictionary *dict) fmt[j] = read_int (r); if (!var_is_valid_name (name, false) || *name == '#' || *name == '$') - error (r, _("position %d: Invalid variable name `%s'."), name); + error (r, _("position %d: Invalid variable name `%s'."), i, name); str_uppercase (name); if (width < 0 || width > 255) -- 2.30.2