mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 08:44:33 +00:00
Fix assigning alt_month in compatibility code
This commit is contained in:
parent
7ec62217f0
commit
849c64f5ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62259
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue