Fixes bug with printf formatting of zero filled fields
This commit is contained in:
parent
27906d6856
commit
3e6c0348ae
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
|
||||||
fmt++;
|
fmt++;
|
||||||
left_align = TRUE;
|
left_align = TRUE;
|
||||||
}
|
}
|
||||||
if (*fmt == '.') {
|
if (*fmt == '0') {
|
||||||
fmt++;
|
fmt++;
|
||||||
filler = '0';
|
filler = '0';
|
||||||
}
|
}
|
||||||
|
|
|
@ -684,7 +684,7 @@ void gwinPrintf(GHandle gh, const char *fmt, ...) {
|
||||||
left_align = TRUE;
|
left_align = TRUE;
|
||||||
}
|
}
|
||||||
filler = ' ';
|
filler = ' ';
|
||||||
if (*fmt == '.') {
|
if (*fmt == '0') {
|
||||||
fmt++;
|
fmt++;
|
||||||
filler = '0';
|
filler = '0';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue