Allow prec==0.

This commit is contained in:
rsc 2003-10-11 02:49:01 +00:00
parent 161060a463
commit a6ea03aea9

View file

@ -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*);