Explicit conversions to int from size_t for MSVC (64-bit) in apps

This commit is contained in:
Paul Bakker 2013-11-30 15:14:38 +01:00
parent c97f9f6465
commit 840ab20ea2
4 changed files with 5 additions and 5 deletions

View file

@ -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;