diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2175,7 +2175,7 @@ rb_str_modify_expand(VALUE str, long expand) if (expand < 0) { rb_raise(rb_eArgError, "negative expanding string size"); } - if (expand > LONG_MAX - len) { + if (expand >= LONG_MAX - len) { rb_raise(rb_eArgError, "string size too big"); } |