projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c56301
)
sys-file-reader: Fix bad printf format specifiers.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 9 Mar 2014 23:00:04 +0000
(16:00 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 9 Mar 2014 23:00:04 +0000
(16:00 -0700)
Found by GCC on x86-64.
src/data/sys-file-reader.c
patch
|
blob
|
history
diff --git
a/src/data/sys-file-reader.c
b/src/data/sys-file-reader.c
index 0571d15eb98f90ee286ed83663f38468bcfe32c5..98af30031248f68c5837d025d06428600823f5e6 100644
(file)
--- a/
src/data/sys-file-reader.c
+++ b/
src/data/sys-file-reader.c
@@
-1143,7
+1143,7
@@
read_value_label_record (struct sfm_reader *r,
return false;
if (record->n_labels > UINT_MAX / sizeof *record->labels)
{
return false;
if (record->n_labels > UINT_MAX / sizeof *record->labels)
{
- sys_error (r, r->pos - 4, _("Invalid number of labels %
z
u."),
+ sys_error (r, r->pos - 4, _("Invalid number of labels %u."),
record->n_labels);
return false;
}
record->n_labels);
return false;
}
@@
-1306,11
+1306,11
@@
read_extension_record (struct sfm_reader *r, int subtype,
{
if (type->size > 0 && record->size != type->size)
sys_warn (r, record->pos,
{
if (type->size > 0 && record->size != type->size)
sys_warn (r, record->pos,
- _("Record type 7, subtype %d has bad size %
z
u "
+ _("Record type 7, subtype %d has bad size %u "
"(expected %d)."), subtype, record->size, type->size);
else if (type->count > 0 && record->count != type->count)
sys_warn (r, record->pos,
"(expected %d)."), subtype, record->size, type->size);
else if (type->count > 0 && record->count != type->count)
sys_warn (r, record->pos,
- _("Record type 7, subtype %d has bad count %
z
u "
+ _("Record type 7, subtype %d has bad count %u "
"(expected %d)."), subtype, record->count, type->count);
else if (type->count == 0 && type->size == 0)
{
"(expected %d)."), subtype, record->count, type->count);
else if (type->count == 0 && type->size == 0)
{
@@
-1915,7
+1915,7
@@
parse_display_parameters (struct sfm_reader *r,
else
{
sys_warn (r, record->pos,
else
{
sys_warn (r, record->pos,
- _("Extension 11 has bad count %
z
u (for %zu variables)."),
+ _("Extension 11 has bad count %u (for %zu variables)."),
record->count, n_vars);
return;
}
record->count, n_vars);
return;
}