summaryrefslogtreecommitdiffstats
path: root/common/sys/string.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-11-01 10:59:00 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-11-01 10:59:00 +0800
commitef3ae89e6046453253984d82af845ddc9e84fbc1 (patch)
tree2ff0d7ef09c0a832389c0e89861f7343687748d9 /common/sys/string.c
parentd6207a0b92e0d12b75ea528b99cf5e85ea73b58e (diff)
downloadpttbbs-ef3ae89e6046453253984d82af845ddc9e84fbc1.tar
pttbbs-ef3ae89e6046453253984d82af845ddc9e84fbc1.tar.gz
pttbbs-ef3ae89e6046453253984d82af845ddc9e84fbc1.tar.bz2
pttbbs-ef3ae89e6046453253984d82af845ddc9e84fbc1.tar.lz
pttbbs-ef3ae89e6046453253984d82af845ddc9e84fbc1.tar.xz
pttbbs-ef3ae89e6046453253984d82af845ddc9e84fbc1.tar.zst
pttbbs-ef3ae89e6046453253984d82af845ddc9e84fbc1.zip
Fix DBCS_strcasestr return type
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4413 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common/sys/string.c')
-rw-r--r--common/sys/string.c2
1 files changed, 1 insertions, 1 deletions
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)