mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 11:15:43 +01:00
- Removed snprintf altogether for critical code paths
This commit is contained in:
parent
331f5630e9
commit
98fe5eaf47
@ -406,7 +406,8 @@ int mpi_write_string( const mpi *X, int radix, char *s, size_t *slen )
|
||||
if( c == 0 && k == 0 && ( i + j + 3 ) != 0 )
|
||||
continue;
|
||||
|
||||
p += snprintf( p, 2, "%02X", c );
|
||||
*(p++) = "0123456789ABCDEF" [c % 16];
|
||||
*(p++) = "0123456789ABCDEF" [c / 16];
|
||||
k = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user