about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-11-06 10:00:20 +0000
committerRoland McGrath <roland@gnu.org>1995-11-06 10:00:20 +0000
commitf797c38303ce47438416a100e4d4671b56ffa528 (patch)
tree8499d4d42757865d078b4ae9c95653d11912ca32 /stdio-common
parente380bf624861b38777a52918fceff106ce698d3a (diff)
downloadglibc-f797c38303ce47438416a100e4d4671b56ffa528.tar.gz
glibc-f797c38303ce47438416a100e4d4671b56ffa528.tar.xz
glibc-f797c38303ce47438416a100e4d4671b56ffa528.zip
* stdio-common/vfprintf.c (%c): Count the character itself towards cvs/libc-951106
	the field width in all cases.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/vfprintf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
index 63a5148463..e22403be22 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 (' ');