tFix bug in rune half of __fmtcpy reported by rob. - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8537259f82977ba1bb9626520e6b3b245bf4d74f
(DIR) parent 53998c99d6e793522fdd4afcb25ab6fb7427ec9c
(HTM) Author: rsc <devnull@localhost>
Date: Tue, 28 Sep 2004 16:23:32 +0000
Fix bug in rune half of __fmtcpy reported by rob.
Diffstat:
M src/lib9/fmt/dofmt.c | 2 --
1 file changed, 0 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/lib9/fmt/dofmt.c b/src/lib9/fmt/dofmt.c
t@@ -161,8 +161,6 @@ __fmtcpy(Fmt *f, const void *vm, int n, int sz)
}
f->nfmt += rt - (Rune *)f->to;
f->to = rt;
- if(m < me)
- return -1;
if(fl & FmtLeft && __rfmtpad(f, w - n) < 0)
return -1;
}else{