Mercurial > ecos-v3_0-branch
changeset 1690:64344279df10
Fix returned length for %% format descriptor
| author | gthomas |
|---|---|
| date | Mon, 12 Jul 2004 22:02:23 +0000 |
| parents | b4f47422be81 |
| children | c81db0785971 |
| files | packages/infra/current/ChangeLog packages/infra/current/src/diag.cxx |
| diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/infra/current/ChangeLog +++ b/packages/infra/current/ChangeLog @@ -1,3 +1,7 @@ +2004-07-12 Gary Thomas <gary@mlbassoc.com> + + * src/diag.cxx (_vprintf): Fix return length for %% + 2004-06-30 Gary Thomas <gary@mlbassoc.com> * src/diag.cxx (_vprintf): Returned [length] was wrong for %p
--- a/packages/infra/current/src/diag.cxx +++ b/packages/infra/current/src/diag.cxx @@ -453,11 +453,13 @@ static int break; case '%': (*putc)('%', param); - break; + res++; + continue; default: (*putc)('%', param); (*putc)(c, param); res += 2; + continue; } pad = left_prec - length; if (sign != '\0') {
