1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-31 00:03:08 +03:00

Fix a couple of warnings of errors in MSVC builds

Two warnings (in tests & examples) in particular would cause problems:
bad format causing invalid data output or a bad chdir due to out of
scope buffer use.
This commit is contained in:
Dan Fandrich
2023-02-22 14:35:49 -08:00
parent 4c9ed51f96
commit d8220ddbff
10 changed files with 14 additions and 17 deletions

View File

@ -225,7 +225,6 @@ int main(int argc, char *argv[])
}
for(;;) {
/* loop until we block */
int rc;
do {
char buffer[0x4000];
rc = libssh2_channel_read(channel, buffer, sizeof(buffer) );