modify programs/*.c to use polarssl_snprintf

This commit is contained in:
Rich Evans 2015-01-30 11:11:57 +00:00
parent 2387c7d105
commit 783d9d1c3e
8 changed files with 27 additions and 19 deletions

View file

@ -29,6 +29,7 @@
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#else
#define polarssl_snprintf snprintf
#define polarssl_printf printf
#endif
@ -105,7 +106,7 @@ int main( int argc, char *argv[] )
* Extract the RSA signature from the text file
*/
ret = 1;
snprintf( filename, 512, "%s.sig", argv[2] );
polarssl_snprintf( filename, 512, "%s.sig", argv[2] );
if( ( f = fopen( filename, "rb" ) ) == NULL )
{