mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
printf should return negative value on error
[BZ #11741] Fixed bug where printf and family may return a spurious success when printing padded formats.
This commit is contained in:
@ -59,7 +59,7 @@ _IO_padn (fp, pad, count)
|
||||
w = _IO_sputn (fp, padptr, PADSIZE);
|
||||
written += w;
|
||||
if (w != PADSIZE)
|
||||
return written;
|
||||
return w == EOF ? w : written;
|
||||
}
|
||||
|
||||
if (i > 0)
|
||||
|
Reference in New Issue
Block a user