diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-14 14:34:07 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-14 14:34:07 +0000 |
| commit | cbee7aea86f01deffe0b21b5bbca6de8bdfb0d4a (patch) | |
| tree | 0d48ceccf48afa1b868c199ee475a05ec1a9734f /ext/bigdecimal | |
| parent | 70e5b70e0b4464967a01fa93c7d1d2d8a6506ebc (diff) | |
| download | ruby-cbee7aea86f01deffe0b21b5bbca6de8bdfb0d4a.tar.gz ruby-cbee7aea86f01deffe0b21b5bbca6de8bdfb0d4a.tar.xz ruby-cbee7aea86f01deffe0b21b5bbca6de8bdfb0d4a.zip | |
* 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]
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
| -rw-r--r-- | ext/bigdecimal/bigdecimal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 04266b1d4..f10af59f5 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -2206,8 +2206,8 @@ VpException(unsigned short f,char *str,int always) return 0; /* 0 Means VpException() raised no exception */ raise: - if(fatal) rb_fatal(str); - else rb_raise(exc,str); + if(fatal) rb_fatal("%s", str); + else rb_raise(exc, "%s", str); return 0; } |
