| commit | 33413cdd25c58f0e57061e0a3cb7a29d492ba785 | [log] [tgz] |
|---|---|---|
| author | Rich Felker <dalias@aerifal.cx> | Thu Aug 22 19:44:02 2013 -0400 |
| committer | Rich Felker <dalias@aerifal.cx> | Thu Aug 22 19:44:02 2013 -0400 |
| tree | 0d88bf261c7088e49c9c593e00620434f523fafc | |
| parent | 87e133b352c419383116a05cbe251dc396de062f [diff] |
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.