diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-03-16 16:35:22 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-03-16 16:35:22 -0400 |
commit | 4aac019a0efd59011a48d031ad046c934c7e8365 (patch) | |
tree | 2604d4e94d02d86070b574da41ff9121b0981cf3 /arch/x86_64/bits | |
parent | de400b6609becbc6a5ae87fa8b155f02a860e257 (diff) | |
download | musl-4aac019a0efd59011a48d031ad046c934c7e8365.tar.gz musl-4aac019a0efd59011a48d031ad046c934c7e8365.tar.bz2 musl-4aac019a0efd59011a48d031ad046c934c7e8365.tar.xz musl-4aac019a0efd59011a48d031ad046c934c7e8365.zip |
fix padding string formats to width in wide printf variants
the idiom fprintf(f, "%.*s", n, "") was wrongly used in vfwprintf as a
means of producing n spaces; instead it produces no output. the
correct form is fprintf(f, "%*s", n, ""), using width instead of
precision, since for %s the later is a maximum rather than a minimum.
Diffstat (limited to 'arch/x86_64/bits')
0 files changed, 0 insertions, 0 deletions