sprintf: replace more sprintf by snprintf.

This commit is contained in:
Kim Kulling
2016-01-04 22:24:25 +01:00
parent c9d00beab8
commit c3d4be1dce
12 changed files with 20 additions and 20 deletions

View File

@@ -344,7 +344,7 @@ void CatmullClarkSubdivider::InternSubdivide (
// faces in the mesh. They occur at outer model boundaries in non-closed
// shapes.
char tmp[512];
sprintf(tmp,"Catmull-Clark Subdivider: got %u bad edges touching only one face (totally %u edges). ",
snprintf(tmp, 512, "Catmull-Clark Subdivider: got %u bad edges touching only one face (totally %u edges). ",
bad_cnt,static_cast<unsigned int>(edges.size()));
DefaultLogger::get()->debug(tmp);