summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-12-21 18:20:21 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-12-21 18:21:03 +0900
commit48a0905d25654d2f949ce870a144d8248ccdcf0d (patch)
treea21cd984d00cb4590bc0c17aa1f9ac8fa2667992 /hash.c
parent69470cc5e93781d637726d0ab20a2f46418d3cb6 (diff)
downloadruby-48a0905d25654d2f949ce870a144d8248ccdcf0d.tar.gz
Add missing '%' in format string
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 07ec93d784..f788375a7e 100644
--- a/hash.c
+++ b/hash.c
@@ -5242,7 +5242,7 @@ ruby_setenv(const char *name, const char *value)
mem_size = len + strlen(value) + 2;
mem_ptr = malloc(mem_size);
if (mem_ptr == NULL)
- rb_sys_fail_str(rb_sprintf("malloc("PRIuSIZE")", mem_size));
+ rb_sys_fail_str(rb_sprintf("malloc(%"PRIuSIZE")", mem_size));
snprintf(mem_ptr, mem_size, "%s=%s", name, value);
}