about summary refs log tree commit diff
path: root/src/time/ctime_r.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-02-05 13:36:04 -0500
committerRich Felker <dalias@aerifal.cx>2018-02-05 13:38:21 -0500
commit596207aa38b0db33f222c9924a1310fee3de88b5 (patch)
tree07ae5a402c134e8e3a8d3f734760009209fe71d0 /src/time/ctime_r.c
parentcc7c300d1af22641b012268a959ac42f15341ed8 (diff)
downloadmusl-596207aa38b0db33f222c9924a1310fee3de88b5.tar.gz
musl-596207aa38b0db33f222c9924a1310fee3de88b5.tar.xz
musl-596207aa38b0db33f222c9924a1310fee3de88b5.zip
fix strftime field widths with %F format and zero year
the code to strip initial sign and leading zeros inadvertently
stripped all the zeros and the subsequent '-' separating the month.
instead, only strip sign characters from the very first position, and
only strip zeros when they are followed by another digit.

based on testing by Dennis Wölfing.
Diffstat (limited to 'src/time/ctime_r.c')
0 files changed, 0 insertions, 0 deletions