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:
Jan Nieuwenhuizen 2019-02-08 13:44:31 +01:00
parent ce8debec54
commit fa1805b5e5
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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;