reduce calling of strlen(); #301

This commit is contained in:
Yukihiro Matsumoto
2012-06-21 16:22:29 +09:00
parent d105ea496f
commit a70c4e0c79
6 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -2987,7 +2987,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str)
continue;
}
}
mrb_str_buf_cat(mrb, result, "\"", strlen("\""));
mrb_str_buf_cat(mrb, result, "\"", sizeof("\""));
return result;
}