From: Roland McGrath Date: Mon, 6 Nov 1995 10:00:20 +0000 (+0000) Subject: * stdio-common/vfprintf.c (%c): Count the character itself towards X-Git-Tag: upstream/2.30~29831 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f797c38303ce47438416a100e4d4671b56ffa528;p=external%2Fglibc.git * stdio-common/vfprintf.c (%c): Count the character itself towards the field width in all cases. --- diff --git a/ChangeLog b/ChangeLog index 43e099a..eaae358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Sun Nov 5 16:09:13 1995 Roland McGrath + * stdio-common/vfprintf.c (%c): Count the character itself towards + the field width in all cases. + * sysdeps/mach/hurd/getpriority.c (getpriority): Cast __vm_deallocate arg to vm_address_t. diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index 63a5148..e22403b 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -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 (' ');