summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index bac45d3c67..2dfe4ed119 100644
--- a/error.c
+++ b/error.c
@@ -153,7 +153,7 @@ rb_compile_error_append(const char *fmt, ...)
VALUE str;
va_start(args, fmt);
- str = rb_sprintf(fmt, args);
+ str = rb_vsprintf(fmt, args);
va_end(args);
compile_err_append(str);
}