mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
* stdio-common/vfprintf.c (%c): Count the character itself towards
the field width in all cases.
This commit is contained in:
parent
e380bf6248
commit
f797c38303
@ -1,5 +1,8 @@
|
|||||||
Sun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
Sun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* stdio-common/vfprintf.c (%c): Count the character itself towards
|
||||||
|
the field width in all cases.
|
||||||
|
|
||||||
* sysdeps/mach/hurd/getpriority.c (getpriority): Cast
|
* sysdeps/mach/hurd/getpriority.c (getpriority): Cast
|
||||||
__vm_deallocate arg to vm_address_t.
|
__vm_deallocate arg to vm_address_t.
|
||||||
|
|
||||||
|
@ -497,11 +497,9 @@ vfprintf (s, format, ap)
|
|||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
/* Character. */
|
/* Character. */
|
||||||
|
--specs[cnt].info.width;/* Account for the character itself. */
|
||||||
if (!specs[cnt].info.left)
|
if (!specs[cnt].info.left)
|
||||||
{
|
PAD (' ');
|
||||||
--specs[cnt].info.width;
|
|
||||||
PAD (' ');
|
|
||||||
}
|
|
||||||
outchar ((unsigned char) args_value[specs[cnt].data_arg].pa_char);
|
outchar ((unsigned char) args_value[specs[cnt].data_arg].pa_char);
|
||||||
if (specs[cnt].info.left)
|
if (specs[cnt].info.left)
|
||||||
PAD (' ');
|
PAD (' ');
|
||||||
|
Loading…
Reference in New Issue
Block a user