diff options
author | rsc <devnull@localhost> | 2006-06-25 23:52:32 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-25 23:52:32 +0000 |
commit | 7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea (patch) | |
tree | 5088594d813d5274e5362cea0927b2d84fb74f9d /src | |
parent | ce35b341b10b495da424ab54c000ef87635854ac (diff) | |
download | plan9port-7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea.tar.gz plan9port-7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea.tar.bz2 plan9port-7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea.zip |
silence warning
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/fmt/dofmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/fmt/dofmt.c b/src/lib9/fmt/dofmt.c index e4e32bf4..214b71db 100644 --- a/src/lib9/fmt/dofmt.c +++ b/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, "<nil>", 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; j<f->prec && s[i]; j++) i += chartorune(&r, s+i); |