mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
error.c: fix r49479
* error.c (rb_mod_sys_fail_str): copy the given format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af5b7053f1
commit
dc7cefff5b
1 changed files with 1 additions and 1 deletions
2
error.c
2
error.c
|
@ -2096,7 +2096,7 @@ rb_sys_warning(const char *fmt, ...)
|
|||
|
||||
if (!RTEST(ruby_verbose)) return;
|
||||
|
||||
snprintf(buf+strlen(buf), BUFSIZ-strlen(buf), ": %s", strerror(errno_save));
|
||||
snprintf(buf, BUFSIZ, "%s: %s", fmt, strerror(errno_save));
|
||||
|
||||
va_start(args, fmt);
|
||||
warn_print(buf, args);
|
||||
|
|
Loading…
Reference in a new issue