Fix assigning alt_month in compatibility code

This commit is contained in:
Andrey A. Chernov 2000-06-29 17:21:45 +00:00
parent 7ec62217f0
commit 849c64f5ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62259

View file

@ -238,7 +238,7 @@ set_from_buf(const char *p, int num_lines)
for (ap = (const char **) &_time_localebuf, i = 0;
i < num_lines; ++ap, ++i)
*ap = p += strlen(p) + 1;
if (num_lines == LCTIME_SIZE_FULL)
if (num_lines >= LCTIME_SIZE_2)
return;
for (i = 0; i < 12; i++)
_time_localebuf.alt_month[i] = _time_localebuf.month[i];