about summary refs log tree commit diff
path: root/locale/programs/locfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/locfile.c')
-rw-r--r--locale/programs/locfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c
index 63ebc4b856..97629e5132 100644
--- a/locale/programs/locfile.c
+++ b/locale/programs/locfile.c
@@ -829,6 +829,7 @@ syntax error in collating order definition"));
 	    case tok_mon:
 	    case tok_am_pm:
 	    case tok_alt_digits:
+	    case tok_era:
 	      READ_STRING_LIST (time_add, bad_time);
 	      continue;
 
@@ -836,7 +837,6 @@ syntax error in collating order definition"));
 	    case tok_d_fmt:
 	    case tok_t_fmt:
 	    case tok_t_fmt_ampm:
-	    case tok_era:
 	    case tok_era_year:
 	    case tok_era_d_t_fmt:
 	    case tok_era_d_fmt:
@@ -935,7 +935,7 @@ write_locale_data (const char *output_path, const char *category,
   int fd;
   char *fname;
 
-  fname = malloc (strlen (output_path) + strlen (category) + 6);
+  fname = malloc (strlen (output_path) + 2 * strlen (category) + 6);
   if (fname == NULL)
     error (5, errno, _("memory exhausted"));