case tok_mon:
case tok_am_pm:
case tok_alt_digits:
+ case tok_era:
READ_STRING_LIST (time_add, bad_time);
continue;
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:
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"));