summaryrefslogtreecommitdiff
path: root/include/sys/ioctl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-03-16 16:35:22 -0400
committerRich Felker <dalias@aerifal.cx>2016-03-16 16:35:22 -0400
commit4aac019a0efd59011a48d031ad046c934c7e8365 (patch)
tree2604d4e94d02d86070b574da41ff9121b0981cf3 /include/sys/ioctl.h
parentde400b6609becbc6a5ae87fa8b155f02a860e257 (diff)
downloadmusl-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 'include/sys/ioctl.h')
0 files changed, 0 insertions, 0 deletions