summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
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));\
}