Skip to content

Commit

Permalink
fix insecure implementation of debugprint
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 21, 2017
1 parent b61a95c commit e768701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Measure/App/AppMeasure.cpp
Expand Up @@ -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());
}

0 comments on commit e768701

Please sign in to comment.