Skip to content
Snippets Groups Projects

fix write beyond array bound

Merged Marco Cattaneo requested to merge cherry-pick-b6c22a78 into stripping24r2-28r2-patches
2 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -209,7 +209,8 @@ warning()<< m_MergedPizerosLocation << " Not available"<<endmsg;
verbose() << "Filling variables with conesize " << coneSize << endmsg;
// -- Convert the conesize to a string
char coneNumber[4];
// -- Convert the conesize to a string (and don't forget space for the terminating '\0'!)
char coneNumber[5];
sprintf( coneNumber, "%.2f", coneSize );
std::string conesize( coneNumber );
Loading