fix insecure implementation of debugprint
This commit is contained in:
@@ -74,7 +74,7 @@ PyMOD_INIT_FUNC(Measure)
|
||||
}
|
||||
|
||||
// debug print for sketchsolv
|
||||
void debugprint(std::string s)
|
||||
void debugprint(const std::string& s)
|
||||
{
|
||||
Base::Console().Log(s.c_str());
|
||||
Base::Console().Log("%s", s.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user