aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-01-19 11:30:47 +0000
committerRon Yorston <rmy@pobox.com>2020-01-19 11:30:47 +0000
commitb8e04d0b842c77047bc59edc5b369e3f5a745d0a (patch)
tree2fa63e3967775f6c352778929766c0f18335280e /shell
parent4b3b7975b2f28b067c593f45c7c7dda2d31bc250 (diff)
downloadbusybox-w32-b8e04d0b842c77047bc59edc5b369e3f5a745d0a.tar.gz
busybox-w32-b8e04d0b842c77047bc59edc5b369e3f5a745d0a.tar.bz2
busybox-w32-b8e04d0b842c77047bc59edc5b369e3f5a745d0a.zip
mingw: fix off-by-one error in mingw_strftime()
When a format specification is replaced the loop variable 't' should point to the last character of the replacement string in the new format buffer. In an extreme case if the original format string is "%z" and tm->tm_isdst is negative to indicate that no DST information is available the replacement string will be empty and 't' will point to the location before the start of the new format buffer. This is OK.
Diffstat (limited to 'shell')
0 files changed, 0 insertions, 0 deletions