mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* regparse.c (onig_syntax_warn): do not use external strings as
printf format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4acf013ffd
commit
3642fa1992
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue