Skip to content
Snippets Groups Projects
Commit 39ed2b11 authored by Jan David Mol's avatar Jan David Mol
Browse files

bug 1362: sprintf -> snprintf

parent 19b855c0
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ namespace LOFAR {
timeRec = gmtime ( &unixtime );
char timeStr[50];
sprintf (timeStr, "%02d:%02d:%02.6f", (timeRec->tm_hour)%24, timeRec->tm_min, (double) timeRec->tm_sec + secfraction);
snprintf (timeStr, sizeof timeStr, "%02d:%02d:%02.6f", (timeRec->tm_hour)%24, timeRec->tm_min, (double) timeRec->tm_sec + secfraction);
string outString = timeStr;
return outString;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment