summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index cb0b4912f4..661059b226 100644
--- a/util.c
+++ b/util.c
@@ -347,7 +347,7 @@ __crt0_glob_function(char *path)
strncpy(buf, path, len);
buf[len] = '\0';
- for (p = buf; *p; p += mblen(p, MB_CUR_MAX))
+ for (p = buf; *p; p += mblen(p, RUBY_MBCHAR_MAXSIZE))
if (*p == '\\')
*p = '/';