From cc2292a5e07978d22f14da9773df3e0715463eb7 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 6 Jun 2009 16:56:53 +0000 Subject: - fix compile error on linux - fix compile warnings git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4502 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/sys/string.c b/common/sys/string.c index 0cfaf7f8..dbcd396a 100644 --- a/common/sys/string.c +++ b/common/sys/string.c @@ -479,6 +479,7 @@ char * qp_encode (char *s, size_t slen, const char *d, const char *tocode) /* create : 95/03/29 */ /* update : 97/03/29 */ /*-------------------------------------------------------*/ +#include #include @@ -729,6 +730,6 @@ str_decode_M3(char *str) } } *dst = 0; - assert(strlen(str) >= strlen(buf)); + assert(strlen(str) >= strlen((char*)buf)); strcpy(str, (char*)buf); } -- cgit v1.2.3