mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Improve capacity enhancing conditions
This commit is contained in:
+1
-1
@@ -169,7 +169,7 @@ str_buf_cat(mrb_state *mrb, struct RString *s, const char *ptr, size_t len)
|
||||
capa *= 2;
|
||||
}
|
||||
else {
|
||||
goto size_error;
|
||||
capa = total;
|
||||
}
|
||||
}
|
||||
if (capa < total || capa > MRB_INT_MAX) {
|
||||
|
||||
Reference in New Issue
Block a user