mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:15:07 +00:00
Fix snprintf usage again
Sigh, switching between branches is error-prone
This commit is contained in:
parent
c728f9486b
commit
8fbb5a32c6
|
@ -141,7 +141,7 @@ int main( int argc, char *argv[] )
|
||||||
/*
|
/*
|
||||||
* Write the signature into <filename>.sig
|
* 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 )
|
if( ( f = fopen( filename, "wb+" ) ) == NULL )
|
||||||
{
|
{
|
||||||
|
|
|
@ -105,7 +105,7 @@ int main( int argc, char *argv[] )
|
||||||
* Extract the RSA signature from the text file
|
* Extract the RSA signature from the text file
|
||||||
*/
|
*/
|
||||||
ret = 1;
|
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 )
|
if( ( f = fopen( filename, "rb" ) ) == NULL )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue