about summary refs log tree commit diff
path: root/src/locale/pleval.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2023-11-21 16:33:15 -0500
committerRich Felker <dalias@aerifal.cx>2023-11-21 16:33:15 -0500
commitf47a5d400b8ffa26cfc5b345dbff52fec94ac7f3 (patch)
tree0abf081fdc2cff27c4e32a77dad1985c937ec7f6 /src/locale/pleval.c
parentf314e133929b6379eccc632bef32eaebb66a7335 (diff)
downloadmusl-f47a5d400b8ffa26cfc5b345dbff52fec94ac7f3.tar.gz
musl-f47a5d400b8ffa26cfc5b345dbff52fec94ac7f3.tar.xz
musl-f47a5d400b8ffa26cfc5b345dbff52fec94ac7f3.zip
strftime: don't attempt to parse field width without seeing a digit
strtoul will consume leading whitespace or sign characters, which are
not valid in this context, thereby accepting invalid field specifiers.
so, avoid calling it unless there is a number to parse as the width.
Diffstat (limited to 'src/locale/pleval.c')
0 files changed, 0 insertions, 0 deletions