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
1 changed files with 1 additions and 1 deletions

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