mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
* stdio-common/vfprintf.c (%c): Count the character itself towards
the field width in all cases.
This commit is contained in:
@ -497,11 +497,9 @@ vfprintf (s, format, ap)
|
||||
|
||||
case 'c':
|
||||
/* Character. */
|
||||
--specs[cnt].info.width;/* Account for the character itself. */
|
||||
if (!specs[cnt].info.left)
|
||||
{
|
||||
--specs[cnt].info.width;
|
||||
PAD (' ');
|
||||
}
|
||||
PAD (' ');
|
||||
outchar ((unsigned char) args_value[specs[cnt].data_arg].pa_char);
|
||||
if (specs[cnt].info.left)
|
||||
PAD (' ');
|
||||
|
Reference in New Issue
Block a user