return number of bytes output
This commit is contained in:
parent
5885bf4c91
commit
f9b88a7b9c
1 changed files with 2 additions and 3 deletions
|
|
@ -32,8 +32,7 @@ Bvprint(Biobuf *bp, char *fmt, va_list arg)
|
||||||
fmtlocaleinit(&f, nil, nil, nil);
|
fmtlocaleinit(&f, nil, nil, nil);
|
||||||
n = fmtvprint(&f, fmt, arg);
|
n = fmtvprint(&f, fmt, arg);
|
||||||
bp->ocount = (char*)f.to - (char*)f.stop;
|
bp->ocount = (char*)f.to - (char*)f.stop;
|
||||||
|
if(n == 0)
|
||||||
|
n = f.nfmt;
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue