Sometimes it's amazing these haven't been turned

up by other compilers.
This commit is contained in:
rsc 2004-03-26 19:20:10 +00:00
parent 6e9a344ddd
commit d99b2f34e6
3 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@ _Bfmtflush(Fmt *f)
Biobuf *b;
b = f->farg;
b->ocount = f->to - f->stop;
b->ocount = (char*)f->to - (char*)f->stop;
if(Bflush(b) < 0)
return 0;
f->to = b->ebuf+b->ocount;