ruby-changes:51219
From: normal <ko1@a...>
Date: Tue, 15 May 2018 10:29:20 +0900 (JST)
Subject: [ruby-changes:51219] normal:r63426 (trunk): -test-/wait_for_single_fd: fix -Wformat-security warning
normal 2018-05-15 10:29:14 +0900 (Tue, 15 May 2018) New Revision: 63426 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63426 Log: -test-/wait_for_single_fd: fix -Wformat-security warning Oops Modified files: trunk/ext/-test-/wait_for_single_fd/wait_for_single_fd.c Index: ext/-test-/wait_for_single_fd/wait_for_single_fd.c =================================================================== --- ext/-test-/wait_for_single_fd/wait_for_single_fd.c (revision 63425) +++ ext/-test-/wait_for_single_fd/wait_for_single_fd.c (revision 63426) @@ -74,7 +74,7 @@ err: https://github.com/ruby/ruby/blob/trunk/ext/-test-/wait_for_single_fd/wait_for_single_fd.c#L74 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/