From: Ben Pfaff Date: Sun, 31 Jul 2005 05:55:00 +0000 (+0000) Subject: (read_varables) Fix msg() bug found by -Wformat. X-Git-Tag: v0.4.0~14 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eb91d0bbeda5b05b6663c5eacd1bdb9e5560718;p=pspp-builds.git (read_varables) Fix msg() bug found by -Wformat. --- diff --git a/src/ChangeLog b/src/ChangeLog index 4ea2679c..7cee2d7b 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 0d5fbcc9..4d95eba2 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)