diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-21 16:22:29 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-21 16:22:29 +0900 |
| commit | a70c4e0c790b9ddb4dbca143cffa585b3841b9f6 (patch) | |
| tree | 1cbbe65814a65c8969b1337bdb0fadae32b85e70 /src/string.c | |
| parent | d105ea496f686b6ef3071e127864fab4677befac (diff) | |
| download | mruby-a70c4e0c790b9ddb4dbca143cffa585b3841b9f6.tar.gz mruby-a70c4e0c790b9ddb4dbca143cffa585b3841b9f6.zip | |
reduce calling of strlen(); #301
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 585edf8a3..894342463 100644 --- a/src/string.c +++ b/src/string.c @@ -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; } |
