aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index afe1e71ae8..77d8c37d5c 100644
--- a/ruby.c
+++ b/ruby.c
@@ -226,7 +226,7 @@ translate_char(p, from, to)
#ifdef CharNext /* defined as CharNext[AW] on Windows. */
p = CharNext(p);
#else
- p += mblen(p, MB_CUR_MAX);
+ p += mblen(p, RUBY_MBCHAR_MAXSIZE);
#endif
}
}