mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
strptime: %s format fix.
Almost never needed in real life because %s is tends to be only one format spec. 1) Return code of gmtime_r() is checked. 2) All flags are set. Submitted by: ache MFC after: 3 weeks
This commit is contained in:
parent
8b0569ba8f
commit
eff6f4441a
1 changed files with 4 additions and 1 deletions
|
|
@ -503,8 +503,11 @@ label:
|
|||
}
|
||||
errno = sverrno;
|
||||
buf = cp;
|
||||
gmtime_r(&t, tm);
|
||||
if (gmtime_r(&t, tm) == NULL)
|
||||
return (NULL);
|
||||
*GMTp = 1;
|
||||
flags |= FLAG_YDAY | FLAG_WDAY | FLAG_MONTH |
|
||||
FLAG_MDAY | FLAG_YEAR;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue