diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-08-22 19:44:02 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-08-22 19:44:02 -0400 |
commit | 33413cdd25c58f0e57061e0a3cb7a29d492ba785 (patch) | |
tree | 0d88bf261c7088e49c9c593e00620434f523fafc /src/signal | |
parent | 87e133b352c419383116a05cbe251dc396de062f (diff) | |
download | musl-33413cdd25c58f0e57061e0a3cb7a29d492ba785.tar.gz musl-33413cdd25c58f0e57061e0a3cb7a29d492ba785.tar.xz musl-33413cdd25c58f0e57061e0a3cb7a29d492ba785.zip |
simplify strftime and fix integer overflows
use a long long value so that even with offsets, values cannot overflow. instead of using different format strings for different numeric formats, simply use a per-format width and %0*lld for all of them. this width specifier is not for use with strftime field widths; that will be a separate step in the caller.
Diffstat (limited to 'src/signal')
0 files changed, 0 insertions, 0 deletions