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:
parent
69470cc5e9
commit
48a0905d25
1 changed files with 1 additions and 1 deletions
2
hash.c
2
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue