diff options
Diffstat (limited to 'gettext-tools')
-rw-r--r-- | gettext-tools/src/ChangeLog | 5 | ||||
-rw-r--r-- | gettext-tools/src/format-awk.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index ae92638..0115b94 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,8 @@ +2006-10-29 Bruno Haible <bruno@clisp.org> + + * format-awk.c (format_parse): Fix bug with unnumbered argument in + precision field. + 2006-10-26 Bruno Haible <bruno@clisp.org> * gettext-0.16 released. diff --git a/gettext-tools/src/format-awk.c b/gettext-tools/src/format-awk.c index 81ddc39..3408f3d 100644 --- a/gettext-tools/src/format-awk.c +++ b/gettext-tools/src/format-awk.c @@ -294,7 +294,7 @@ format_parse (const char *format, bool translated, char **invalid_reason) spec.allocated = 2 * spec.allocated + 1; spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); } - spec.numbered[unnumbered_arg_count].type = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; unnumbered_arg_count++; } |