X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=lib%2Fvsprintf.c;h=47a7dcce362d12ea04dd6ecf4e32b99e5c132764;hp=fd9ad7b8f32610e876e20de8065d19b13b6a0dd4;hb=d01b3f4172d368eed8e56ab974e6028ce0710591;hpb=f4ebbd9f7ea23e3f0fcbe098754580c220894628 diff --git a/lib/vsprintf.c b/lib/vsprintf.c index fd9ad7b..47a7dcc 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -222,7 +222,7 @@ int vsprintf(char *buf, const char *fmt, va_list args) *str++ = *fmt; continue; } - + /* process flags */ flags = 0; repeat: @@ -234,7 +234,7 @@ int vsprintf(char *buf, const char *fmt, va_list args) case '#': flags |= SPECIAL; goto repeat; case '0': flags |= ZEROPAD; goto repeat; } - + /* get field width */ field_width = -1; if (isdigit(*fmt)) @@ -252,7 +252,7 @@ int vsprintf(char *buf, const char *fmt, va_list args) /* get the precision */ precision = -1; if (*fmt == '.') { - ++fmt; + ++fmt; if (isdigit(*fmt)) precision = skip_atoi(&fmt); else if (*fmt == '*') {