diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-23 03:46:52 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-23 03:46:52 -0700 |
| commit | af2f3dd16f0d322a4d878196c1b8565cc264d625 (patch) | |
| tree | 7138d6d52cf84e65fe32c98d1b092dd9431305d9 /src/variable.c | |
| parent | fe7472852255f3b265eaa32cd59e869b9528ece6 (diff) | |
| parent | 0cedf8fa02848bc505d7cda29f7266b5e03a9076 (diff) | |
| download | mruby-af2f3dd16f0d322a4d878196c1b8565cc264d625.tar.gz mruby-af2f3dd16f0d322a4d878196c1b8565cc264d625.zip | |
Merge pull request #1050 from monaka/pr-cleanup-string.c-20130323
Clean up string.c
Diffstat (limited to 'src/variable.c')
| -rw-r--r-- | src/variable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/variable.c b/src/variable.c index 4345f49a7..df89397d7 100644 --- a/src/variable.c +++ b/src/variable.c @@ -525,10 +525,10 @@ inspect_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p) /* need not to show internal data */ if (RSTRING_PTR(str)[0] == '-') { /* first element */ RSTRING_PTR(str)[0] = '#'; - mrb_str_cat2(mrb, str, " "); + mrb_str_cat(mrb, str, " ", 1); } else { - mrb_str_cat2(mrb, str, ", "); + mrb_str_cat(mrb, str, ", ", 2); } s = mrb_sym2name_len(mrb, sym, &len); mrb_str_cat(mrb, str, s, len); |
