Fixes bug with printf formatting of zero filled fields

ugfx_release_2.6
inmarket 2014-10-09 12:29:26 +10:00
parent a40283c92b
commit 8e42404e7c
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
fmt++;
left_align = TRUE;
}
if (*fmt == '.') {
if (*fmt == '0') {
fmt++;
filler = '0';
}

View File

@ -684,7 +684,7 @@ void gwinPrintf(GHandle gh, const char *fmt, ...) {
left_align = TRUE;
}
filler = ' ';
if (*fmt == '.') {
if (*fmt == '0') {
fmt++;
filler = '0';
}