1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-24 19:37:48 +03:00

benchmarks: fix some bugs

This commit is contained in:
Aris Adamantiadis
2011-08-30 15:03:50 +03:00
parent 17ae216340
commit 555d1a4347
3 changed files with 26 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ int benchmarks_raw_up (ssh_session session, struct argument_s *args,
if(args->verbose>0)
fprintf(stdout,"Finished upload, now waiting the ack\n");
if((err=ssh_channel_read(channel,buffer,sizeof(buffer)-1,0))==SSH_ERROR)
if((err=ssh_channel_read(channel,buffer,5,0))==SSH_ERROR)
goto error;
buffer[err]=0;
if(!strstr(buffer,"done")){