mescc: Mes C Library: Support gcc-4.6.4: vfprintf, vsnprintf: pad with space.
* lib/stdio/vfprintf.c (vfprintf): pad with space. * lib/stdio/vsnprintf.c (vsnprintf): pad with space.
This commit is contained in:
parent
98b9ac8e98
commit
0e55071bc7
|
@ -48,6 +48,11 @@ vfprintf (FILE * f, char const *format, va_list ap)
|
|||
c = *++p;
|
||||
}
|
||||
char pad = ' ';
|
||||
if (c == ' ')
|
||||
{
|
||||
pad = c;
|
||||
c = *p++;
|
||||
}
|
||||
if (c == '0')
|
||||
{
|
||||
pad = c;
|
||||
|
|
|
@ -50,6 +50,11 @@ vsnprintf (char *str, size_t size, char const *format, va_list ap)
|
|||
c = *++p;
|
||||
}
|
||||
char pad = ' ';
|
||||
if (c == ' ')
|
||||
{
|
||||
pad = c;
|
||||
c = *p++;
|
||||
}
|
||||
if (c == '0')
|
||||
{
|
||||
pad = c;
|
||||
|
|
Loading…
Reference in a new issue