1 --- include/cppunit/TestAssert.h
2 +++ include/cppunit/TestAssert.h
4 #if defined(_MSC_VER) && defined(__STDC_SECURE_LIB__) // Use secure version with visual studio 2005 to avoid warning.
5 sprintf_s(buffer, sizeof(buffer), "%.*g", precision, x);
7 - sprintf(buffer, "%.*g", precision, x);
8 + snprintf(buffer, sizeof(buffer), "%.*g", precision, x);