safely print errors by explicitly specifying a format string

This commit is contained in:
Edward Rudd 2013-12-31 16:25:38 -05:00
parent adfbc5bb64
commit 2572a05e8b
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ void raiseRbExc(const Exception &exc)
RbData *data = getRbData(); RbData *data = getRbData();
VALUE excClass = data->exc[excToRbExc[exc.type]]; VALUE excClass = data->exc[excToRbExc[exc.type]];
rb_raise(excClass, exc.msg.c_str()); rb_raise(excClass, "%s", exc.msg.c_str());
} }
int int