commit 7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea from: rsc date: Sun Jun 25 23:52:32 2006 UTC silence warning commit - ce35b341b10b495da424ab54c000ef87635854ac commit + 7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea blob - e4e32bf4590c32a0df3f3a76c916dc6ec22c8999 blob + 214b71db0e0fc30eb357ed107b3a3f25249509d2 --- src/lib9/fmt/dofmt.c +++ src/lib9/fmt/dofmt.c @@ -246,13 +246,13 @@ int fmtstrcpy(Fmt *f, char *s) { int i, j; - Rune r; if(!s) return __fmtcpy(f, "", 5, 5); /* if precision is specified, make sure we don't wander off the end */ if(f->flags & FmtPrec){ #ifdef PLAN9PORT + Rune r; i = 0; for(j=0; jprec && s[i]; j++) i += chartorune(&r, s+i);