diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-08 21:28:51 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-08 21:28:51 +0800 |
commit | 043e54e5047410e38685ad402fc86418bf005f9a (patch) | |
tree | a2a5dab25956973163939445fbda23c5cfed2cbb | |
parent | 271bcfc4e7d98aafb59b6e67399244f635ee74e8 (diff) | |
download | pttbbs-043e54e5047410e38685ad402fc86418bf005f9a.tar pttbbs-043e54e5047410e38685ad402fc86418bf005f9a.tar.gz pttbbs-043e54e5047410e38685ad402fc86418bf005f9a.tar.bz2 pttbbs-043e54e5047410e38685ad402fc86418bf005f9a.tar.lz pttbbs-043e54e5047410e38685ad402fc86418bf005f9a.tar.xz pttbbs-043e54e5047410e38685ad402fc86418bf005f9a.tar.zst pttbbs-043e54e5047410e38685ad402fc86418bf005f9a.zip |
fix usage error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1474 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/convert.c b/mbbsd/convert.c index 8f6d5120..8a0d61b2 100644 --- a/mbbsd/convert.c +++ b/mbbsd/convert.c @@ -10,13 +10,13 @@ static int gb_read(int fd, void *buf, size_t count) { int len = read(fd, buf, count); if (len > 0) - gb2big(buf, len); + gb2big((char *)buf, &len); return len; } static int gb_write(int fd, void *buf, size_t count) { - big2gb(buf, count); + big2gb((char *)buf, &count); return write(fd, buf, count); } |