summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-27 15:19:40 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-27 15:19:40 +0900
commit0a88499f32f38b5608d50da59fc7d22132767c0d (patch)
tree4336a4e5a20b4cb7e81595b12ff10936de9b7813 /src/string.c
parent6f9ed1c5b21ba6ef2230e15bd3b39535f2f7bde9 (diff)
downloadmruby-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.c2
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;
}