commit | 4aac019a0efd59011a48d031ad046c934c7e8365 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Mar 16 16:35:22 2016 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Mar 16 16:35:22 2016 -0400 |
tree | 2604d4e94d02d86070b574da41ff9121b0981cf3 | |
parent | de400b6609becbc6a5ae87fa8b155f02a860e257 [diff] |
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.