diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-27 15:19:40 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-27 15:19:40 +0900 |
| commit | 0a88499f32f38b5608d50da59fc7d22132767c0d (patch) | |
| tree | 4336a4e5a20b4cb7e81595b12ff10936de9b7813 /src/string.c | |
| parent | 6f9ed1c5b21ba6ef2230e15bd3b39535f2f7bde9 (diff) | |
| download | mruby-0a88499f32f38b5608d50da59fc7d22132767c0d.tar.gz mruby-0a88499f32f38b5608d50da59fc7d22132767c0d.zip | |
sizeof("a") is bigger by one than strlen("a")
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 f01c08bce..8e61e6bb9 100644 --- a/src/string.c +++ b/src/string.c @@ -2988,7 +2988,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str) continue; } } - mrb_str_buf_cat(mrb, result, "\"", sizeof("\"")); + mrb_str_buf_cat(mrb, result, "\"", 1); return result; } |
