aboutsummaryrefslogtreecommitdiff
path: root/locale/lc-time.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/lc-time.c')
-rw-r--r--locale/lc-time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/lc-time.c b/locale/lc-time.c
index 533e2e0d4c..78789dce41 100644
--- a/locale/lc-time.c
+++ b/locale/lc-time.c
@@ -98,9 +98,9 @@ _nl_get_era_entry (const struct tm *tp)
ptr += 3 - (((ptr - (const char *) eras[cnt]) + 3) & 3);
/* Skip wide era name. */
- ptr = (char *) wcschr ((wchar_t *) ptr, '\0');
+ ptr = (char *) (wcschr ((wchar_t *) ptr, '\0') + 1);
/* Skip wide era format. */
- ptr = (char *) wcschr ((wchar_t *) ptr, '\0');
+ ptr = (char *) (wcschr ((wchar_t *) ptr, '\0') + 1);
}
}
}