silence warning
This commit is contained in:
parent
ce35b341b1
commit
7bd73c7fd4
1 changed files with 1 additions and 1 deletions
|
|
@ -246,13 +246,13 @@ int
|
||||||
fmtstrcpy(Fmt *f, char *s)
|
fmtstrcpy(Fmt *f, char *s)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
Rune r;
|
|
||||||
|
|
||||||
if(!s)
|
if(!s)
|
||||||
return __fmtcpy(f, "<nil>", 5, 5);
|
return __fmtcpy(f, "<nil>", 5, 5);
|
||||||
/* if precision is specified, make sure we don't wander off the end */
|
/* if precision is specified, make sure we don't wander off the end */
|
||||||
if(f->flags & FmtPrec){
|
if(f->flags & FmtPrec){
|
||||||
#ifdef PLAN9PORT
|
#ifdef PLAN9PORT
|
||||||
|
Rune r;
|
||||||
i = 0;
|
i = 0;
|
||||||
for(j=0; j<f->prec && s[i]; j++)
|
for(j=0; j<f->prec && s[i]; j++)
|
||||||
i += chartorune(&r, s+i);
|
i += chartorune(&r, s+i);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue