chiark / gitweb /
Stupid bug in float formatting.
authormdw <mdw>
Fri, 16 Sep 2005 13:09:29 +0000 (13:09 +0000)
committermdw <mdw>
Fri, 16 Sep 2005 13:09:29 +0000 (13:09 +0000)
dputf.c

diff --git a/dputf.c b/dputf.c
index 85b6c65..7ca969a 100644 (file)
--- a/dputf.c
+++ b/dputf.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: dputf.c,v 1.6 2004/04/08 01:36:11 mdw Exp $
+ * $Id$
  *
  * `printf'-style formatting for dynamic strings
  *
@@ -131,6 +131,7 @@ int dstr_vputf(dstr *d, const char *p, va_list *ap)
          DPUTC(&dd, '.');
          ip = &prec;
          f |= f_prec;
+         p++;
          goto getnum;
        case '*':
          ip = &wd;