Index: tester/covoar/ReportsBase.cc =================================================================== --- tester/covoar/ReportsBase.cc (revision 05b4cfbfc12782ac1d21c531cf773cf8e94fb0ab) +++ tester/covoar/ReportsBase.cc (revision b857151112fe5ae05f20447e2598123a3bce1657) @@ -211,8 +211,9 @@ itr++ ) { - uint32_t id = 0; - std::string annotation = ""; - std::string line; - char textLine[150]; + uint32_t id = 0; + std::string annotation = ""; + std::string line; + const std::size_t LINE_LENGTH = 150; + char textLine[LINE_LENGTH]; state = A_SOURCE; @@ -237,5 +238,5 @@ } - sprintf( textLine, "%-70s", itr->line.c_str() ); + snprintf( textLine, LINE_LENGTH, "%-70s", itr->line.c_str() ); line = textLine + annotation; Index: tester/covoar/ReportsHtml.cc =================================================================== --- tester/covoar/ReportsHtml.cc (revision 05b4cfbfc12782ac1d21c531cf773cf8e94fb0ab) +++ tester/covoar/ReportsHtml.cc (revision b857151112fe5ae05f20447e2598123a3bce1657) @@ -53,5 +53,5 @@ fprintf( \ aFile, \ - "