mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
safely print errors by explicitly specifying a format string
This commit is contained in:
parent
adfbc5bb64
commit
2572a05e8b
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ void raiseRbExc(const Exception &exc)
|
|||
RbData *data = getRbData();
|
||||
VALUE excClass = data->exc[excToRbExc[exc.type]];
|
||||
|
||||
rb_raise(excClass, exc.msg.c_str());
|
||||
rb_raise(excClass, "%s", exc.msg.c_str());
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Reference in a new issue