safely print errors by explicitly specifying a format string
This commit is contained in:
parent
adfbc5bb64
commit
2572a05e8b
|
@ -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 New Issue