From ef3ae89e6046453253984d82af845ddc9e84fbc1 Mon Sep 17 00:00:00 2001 From: wens Date: Sat, 1 Nov 2008 02:59:00 +0000 Subject: Fix DBCS_strcasestr return type git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4413 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sys/string.c b/common/sys/string.c index 6f738939..a6a10cc9 100644 --- a/common/sys/string.c +++ b/common/sys/string.c @@ -386,7 +386,7 @@ DBCS_strcasestr(const char* pool, const char *ptr) } if (found) - return pool+i; + return (char *)pool+i; // next iteration: if target is DBCS, skip one more byte. if (pool[i] < 0) -- cgit v1.2.3