summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-15 01:29:14 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-15 01:29:14 +0000
commita687547a9a2da9f4139ee079bf38c5b452666d14 (patch)
tree39b6e24a803d509db1ea9bb9378fe07e30eb35b3
parent6f9609867cdd4bf965465d0aabe0e8e6c665e9c0 (diff)
-test-/wait_for_single_fd: fix -Wformat-security warning
Oops git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/-test-/wait_for_single_fd/wait_for_single_fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/wait_for_single_fd/wait_for_single_fd.c b/ext/-test-/wait_for_single_fd/wait_for_single_fd.c
index 6eaeff1..b8a3397 100644
--- a/ext/-test-/wait_for_single_fd/wait_for_single_fd.c
+++ b/ext/-test-/wait_for_single_fd/wait_for_single_fd.c
@@ -74,7 +74,7 @@ err:
if (kqfd >= 0) close(kqfd);
if (msg) {
if (e) rb_syserr_fail(e, msg);
- rb_raise(rb_eRuntimeError, msg);
+ rb_raise(rb_eRuntimeError, "%s", msg);
}
return ret;
}