aboutsummaryrefslogtreecommitdiff
path: root/src/libbio
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-26 19:20:10 +0000
committerrsc <devnull@localhost>2004-03-26 19:20:10 +0000
commitd99b2f34e69bc363c2973a2473e75654196ab40e (patch)
treead1218ad09650109b821c0f37640142483735711 /src/libbio
parent6e9a344ddd8531ceb58a6ae4af610ce06523e918 (diff)
downloadplan9port-d99b2f34e69bc363c2973a2473e75654196ab40e.tar.gz
plan9port-d99b2f34e69bc363c2973a2473e75654196ab40e.tar.bz2
plan9port-d99b2f34e69bc363c2973a2473e75654196ab40e.zip
Sometimes it's amazing these haven't been turned
up by other compilers.
Diffstat (limited to 'src/libbio')
-rw-r--r--src/libbio/bfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libbio/bfmt.c b/src/libbio/bfmt.c
index f1b6f5ab..4e0b6206 100644
--- a/src/libbio/bfmt.c
+++ b/src/libbio/bfmt.c
@@ -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;