Fix bug in rune half of __fmtcpy reported by rob.
This commit is contained in:
parent
53998c99d6
commit
8537259f82
@ -161,8 +161,6 @@ __fmtcpy(Fmt *f, const void *vm, int n, int sz)
|
|||||||
}
|
}
|
||||||
f->nfmt += rt - (Rune *)f->to;
|
f->nfmt += rt - (Rune *)f->to;
|
||||||
f->to = rt;
|
f->to = rt;
|
||||||
if(m < me)
|
|
||||||
return -1;
|
|
||||||
if(fl & FmtLeft && __rfmtpad(f, w - n) < 0)
|
if(fl & FmtLeft && __rfmtpad(f, w - n) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user