mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Explicit conversions to int from size_t for MSVC (64-bit) in apps
This commit is contained in:
parent
c97f9f6465
commit
840ab20ea2
4 changed files with 5 additions and 5 deletions
|
|
@ -149,7 +149,7 @@ int main( int argc, char *argv[] )
|
|||
fgets( buf, sizeof(buf), f );
|
||||
fclose( f );
|
||||
|
||||
i = strlen( buf );
|
||||
i = (int) strlen( buf );
|
||||
if( buf[i - 1] == '\n' ) buf[i - 1] = '\0';
|
||||
if( buf[i - 2] == '\r' ) buf[i - 2] = '\0';
|
||||
opt.password = buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue