summaryrefslogtreecommitdiff
path: root/wince/stdlib.c
diff options
context:
space:
mode:
authoruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-08 04:38:06 +0000
committeruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-08 04:38:06 +0000
commit32bd3c5679d39b1679a25f0bdb1453858376dce0 (patch)
tree21724aa2193edb57d65dc756a631d68ed666dbd0 /wince/stdlib.c
parent9481face427a93e1a557ecd980ec82f5d04da8d5 (diff)
* wince/setup.mak: set SUBSYSTEM in each platform.
* wince/stdlib.c: fix mblen() bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'wince/stdlib.c')
-rw-r--r--wince/stdlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wince/stdlib.c b/wince/stdlib.c
index c7f0c8428a..a2ac340de4 100644
--- a/wince/stdlib.c
+++ b/wince/stdlib.c
@@ -30,9 +30,9 @@ int mblen(const char *mbstr, size_t count)
{
if( *p=='\0' ) break;
if( IsDBCSLeadByteEx( CP_ACP, *p ) )
- n+=2;
+ n+=2, p+=2;
else
- n+=1;
+ n+=1, p+=1;
}
return n;