Fixes bug with printf formatting of zero filled fields
This commit is contained in:
parent
a40283c92b
commit
8e42404e7c
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++;
|
||||
left_align = TRUE;
|
||||
}
|
||||
if (*fmt == '.') {
|
||||
if (*fmt == '0') {
|
||||
fmt++;
|
||||
filler = '0';
|
||||
}
|
||||
|
|
|
@ -684,7 +684,7 @@ void gwinPrintf(GHandle gh, const char *fmt, ...) {
|
|||
left_align = TRUE;
|
||||
}
|
||||
filler = ' ';
|
||||
if (*fmt == '.') {
|
||||
if (*fmt == '0') {
|
||||
fmt++;
|
||||
filler = '0';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue