summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-18 05:57:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-18 05:57:46 +0000
commitc0e5ea941820076461beabe6c8342b8a47484319 (patch)
treebeeb3efa69c6cfebc596ea43875222f25483b726 /error.c
parent32dc42cf1a248821df7594047bd3fd7822622b32 (diff)
1.1b9_21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/error.c b/error.c
index ad93675..9c024dd 100644
--- a/error.c
+++ b/error.c
@@ -547,6 +547,8 @@ Init_Exception()
va_list args;\
char buf[BUFSIZ];\
va_init_list(args,fmt);\
+ vsprintf(buf, fmt, args);\
+ va_end(args);\
rb_raise(exc_new2(klass, buf));\
}