aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 5e9015da69..60f99e272d 100644
--- a/dir.c
+++ b/dir.c
@@ -85,14 +85,14 @@ char *strchr _((char*,char));
#if defined(CharNext)
# define Next(p) CharNext(p)
#elif defined(DJGPP)
-# define Next(p) ((p) + mblen(p, MB_CUR_MAX))
+# define Next(p) ((p) + mblen(p, RUBY_MBCHAR_MAXSIZE))
#elif defined(__EMX__)
# define Next(p) ((p) + emx_mblen(p))
static inline int
emx_mblen(p)
const char *p;
{
- int n = mblen(p, INT_MAX);
+ int n = mblen(p, RUBY_MBCHAR_MAXSIZE);
return (n < 0) ? 1 : n;
}
#endif