1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add missing '%' in format string

This commit is contained in:
Kazuhiro NISHIYAMA 2021-12-21 18:20:21 +09:00
parent 69470cc5e9
commit 48a0905d25
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

2
hash.c
View file

@ -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);
}