diff options
-rw-r--r-- | src/lib9/encodefmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/encodefmt.c b/src/lib9/encodefmt.c index 9a5cbfc4..5dd2f488 100644 --- a/src/lib9/encodefmt.c +++ b/src/lib9/encodefmt.c @@ -11,7 +11,7 @@ encodefmt(Fmt *f) uchar *b; char obuf[64]; // rsc optimization - if(!(f->flags&FmtPrec) || f->prec < 1) + if(!(f->flags&FmtPrec) || f->prec < 0) goto error; b = va_arg(f->args, uchar*); |