snprintf (err->data, err->dsize, "Invalid month: %s", p);
snprintf (err->data, err->dsize, _("Invalid month: %s"), p);
static const char *getDate (const char *s, struct tm *t, BUFFER *err){  char *p;  time_t now = time (NULL);  struct tm *tm = localtime (&now);  t->tm_mday = strtol (s, &p, 0);  if (t->tm_mday < 1 || t->tm_mday > 31)  {    snprintf (err->data, err->dsize, "Invalid day of month: %s", s);    return NULL;  }  if (*p != '/')  {    /* fill in today's month and year */    t->tm_mon = tm->tm_mon;    t->tm_year = tm->tm_year;    return p;  }  p++;  t->tm_mon = strtol (p, &p, 0) - 1;  if (t->tm_mon < 0 || t->tm_mon > 11)  {    snprintf (err->data, err->dsize, "Invalid month: %s", p);    return NULL;  }  if (*p != '/')  {    t->tm_year = tm->tm_year;    return p;  }  p++;  t->tm_year = strtol (p, &p, 0);  if (t->tm_year < 70) /* year 2000+ */    t->tm_year += 100;  else if (t->tm_year > 1900)    t->tm_year -= 1900;  return p;}