update credits
[LibreOffice.git] / external / cppunit / sprintf.patch.0
blobdaa4881f338419253c1d1931475724d8f324b70d
1 --- include/cppunit/TestAssert.h
2 +++ include/cppunit/TestAssert.h
3 @@ -112,7 +122,7 @@
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); 
6  #else  
7 -       sprintf(buffer, "%.*g", precision, x); 
8 +       snprintf(buffer, sizeof(buffer), "%.*g", precision, x); 
9  #endif
10         return buffer;
11      }