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); }