summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 02:00:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 02:00:21 +0000
commite5f0a4b20bc89d46ef61fa8ed4a95159853fed4d (patch)
tree95b62c377b03713e8a20448b31333730d21bbc43
parent571bb734109ded6c1f93d3d4d981e2c9a47108c0 (diff)
mjit.c: make filename in allocated buffer
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--mjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index 60359b34ad..ba4da6b416 100644
--- a/mjit.c
+++ b/mjit.c
@@ -757,7 +757,7 @@ convert_unit_to_func(struct rb_mjit_unit *unit)
if (c_file_len >= (int)sizeof(c_file_buff)) {
++c_file_len;
c_file = alloca(c_file_len);
- c_file_len = sprint_uniq_filename(c_file_buff, c_file_len, unit->id, MJIT_TMP_PREFIX, c_ext);
+ c_file_len = sprint_uniq_filename(c_file, c_file_len, unit->id, MJIT_TMP_PREFIX, c_ext);
}
++c_file_len;
so_file = alloca(c_file_len - sizeof(c_ext) + sizeof(so_ext));