diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-11-07 18:22:13 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-07 18:22:13 +0900 |
| commit | c3188cac431225fda48718f309ad3d9318a6e44f (patch) | |
| tree | 173888a9ad40824ffd4d83e95111cc4f51f68a3c /src | |
| parent | d25ebec988f61f60d181f38dad9057243034eb10 (diff) | |
| parent | 7d7f9feee7302ffabb04fa6ea9fb4e46db5682a2 (diff) | |
| download | mruby-c3188cac431225fda48718f309ad3d9318a6e44f.tar.gz mruby-c3188cac431225fda48718f309ad3d9318a6e44f.zip | |
Merge pull request #4160 from mimaki/wrong-negative-float-in-mrb
Wrong pool data length for negative floating value in a mrb file.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fmt_fp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c index 783cc6c02..7028d3aac 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -379,7 +379,7 @@ mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt) mrb_value mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt) { - char buf[24]; + char buf[25]; snprintf(buf, sizeof(buf), fmt, mrb_float(flo)); return mrb_str_new_cstr(mrb, buf); |
