mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-05 01:23:39 +02:00
Fix snprintf usage again
Sigh, switching between branches is error-prone
This commit is contained in:
@@ -141,7 +141,7 @@ int main( int argc, char *argv[] )
|
||||
/*
|
||||
* Write the signature into <filename>.sig
|
||||
*/
|
||||
snprintf( filename, sizeof( filename ), "%s.sig", argv[1] );
|
||||
polarssl_snprintf( filename, sizeof( filename ), "%s.sig", argv[1] );
|
||||
|
||||
if( ( f = fopen( filename, "wb+" ) ) == NULL )
|
||||
{
|
||||
|
||||
@@ -105,7 +105,7 @@ int main( int argc, char *argv[] )
|
||||
* Extract the RSA signature from the text file
|
||||
*/
|
||||
ret = 1;
|
||||
snprintf( filename, sizeof( filename ), "%s.sig", argv[1] );
|
||||
polarssl_snprintf( filename, sizeof( filename ), "%s.sig", argv[1] );
|
||||
|
||||
if( ( f = fopen( filename, "rb" ) ) == NULL )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user