diff options
Diffstat (limited to 'regparse.c')
-rw-r--r-- | regparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regparse.c b/regparse.c index e413f55816..2caab909e1 100644 --- a/regparse.c +++ b/regparse.c @@ -2859,9 +2859,9 @@ onig_syntax_warn(ScanEnv *env, const char *fmt, ...) (const UChar *)fmt, args); va_end(args); if (env->sourcefile == NULL) - rb_warn((char *)buf); + rb_warn("%s", (char *)buf); else - rb_compile_warn(env->sourcefile, env->sourceline, (char *)buf); + rb_compile_warn(env->sourcefile, env->sourceline, "%s", (char *)buf); } static void |