diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-14 14:33:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-14 14:33:10 +0000 |
commit | 41f3f0eb66c306d33c7c59c7ca4b199416be8196 (patch) | |
tree | 35446923bc5438f4f164d2b8593a328293834bf7 /regparse.c | |
parent | 9c0cb98f28e4cebd6aa6def1785e047605c850e5 (diff) | |
download | ruby-41f3f0eb66c306d33c7c59c7ca4b199416be8196.tar.gz |
* parse.y (parser_warning, parser_warn): some error message may
contain format specifiers. a patch from Akinori MUSHA <knu at
iDaemons.org>. [ruby-dev:29657]
* regparse.c (onig_rb_warning, onig_rb_warn): ditto.
* ext/bigdecimal/bigdecimal.c (VpException): ditto.
* ext/dl/handle.c (rb_dlhandle_initialize): ditto.
* ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r-- | regparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regparse.c b/regparse.c index 407b73fc44..ba7e38e7f1 100644 --- a/regparse.c +++ b/regparse.c @@ -64,13 +64,13 @@ extern void onig_null_warn(const char* s) { } extern void onig_rb_warn(const char* s) { - rb_warn(s); + rb_warn("%s", s); } extern void onig_rb_warning(const char* s) { - rb_warning(s); + rb_warning("%s", s); } #endif |