1
0
Fork 0
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:
nobu 2015-02-03 08:23:39 +00:00
parent af5b7053f1
commit dc7cefff5b

View file

@ -2096,7 +2096,7 @@ rb_sys_warning(const char *fmt, ...)
if (!RTEST(ruby_verbose)) return; 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); va_start(args, fmt);
warn_print(buf, args); warn_print(buf, args);