diff options
| author | inmarket <andrewh@inmarket.com.au> | 2014-10-09 12:29:26 +1000 | 
|---|---|---|
| committer | inmarket <andrewh@inmarket.com.au> | 2014-10-09 12:31:53 +1000 | 
| commit | 8e42404e7cdfcd568afac6b6a1ad0d0c825da0ff (patch) | |
| tree | 26521af6e88c94ad0f6ee8be10d2dfec612cfb09 /src | |
| parent | a40283c92becd977cfad0c4b01ca069de23eacbf (diff) | |
| download | uGFX-8e42404e7cdfcd568afac6b6a1ad0d0c825da0ff.tar.gz uGFX-8e42404e7cdfcd568afac6b6a1ad0d0c825da0ff.tar.bz2 uGFX-8e42404e7cdfcd568afac6b6a1ad0d0c825da0ff.zip | |
Fixes bug with printf formatting of zero filled fields
Diffstat (limited to 'src')
| -rw-r--r-- | src/gfile/gfile_printg.c | 2 | ||||
| -rw-r--r-- | src/gwin/gwin_console.c | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/src/gfile/gfile_printg.c b/src/gfile/gfile_printg.c index 33db8bc8..d11bb24d 100644 --- a/src/gfile/gfile_printg.c +++ b/src/gfile/gfile_printg.c @@ -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';  		} diff --git a/src/gwin/gwin_console.c b/src/gwin/gwin_console.c index 4c17034d..11359626 100644 --- a/src/gwin/gwin_console.c +++ b/src/gwin/gwin_console.c @@ -684,7 +684,7 @@ void gwinPrintf(GHandle gh, const char *fmt, ...) {  			left_align = TRUE;  		}  		filler = ' '; -		if (*fmt == '.') { +		if (*fmt == '0') {  			fmt++;  			filler = '0';  		} | 
