diff options
Diffstat (limited to 'locale/programs/ld-messages.c')
-rw-r--r-- | locale/programs/ld-messages.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/locale/programs/ld-messages.c b/locale/programs/ld-messages.c index cbf240eff4..dd5de42333 100644 --- a/locale/programs/ld-messages.c +++ b/locale/programs/ld-messages.c @@ -216,6 +216,11 @@ messages_output (struct localedef_t *locale, struct charmap_t *charmap, idx[cnt - 2] = idx[cnt - 3] + iov[cnt - 1].iov_len; iov[cnt].iov_base = (char *) messages->nostr; iov[cnt].iov_len = strlen (iov[cnt].iov_base) + 1; + ++cnt; + + idx[cnt - 2] = idx[cnt - 3] + iov[cnt - 1].iov_len; + iov[cnt].iov_base = (char *) charmap->code_set_name; + iov[cnt].iov_len = strlen (iov[cnt].iov_base) + 1; assert (cnt + 1 == 2 + _NL_ITEM_INDEX (_NL_NUM_LC_MESSAGES)); |