aboutsummaryrefslogtreecommitdiff
path: root/samplesshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'samplesshd.c')
-rw-r--r--samplesshd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplesshd.c b/samplesshd.c
index ee16725c..edd2d172 100644
--- a/samplesshd.c
+++ b/samplesshd.c
@@ -145,7 +145,7 @@ int main(int argc, char **argv){
printf("it works !\n");
buf=buffer_new();
do{
- i=channel_read(chan,buf,0,0);
+ i=channel_read_buffer(chan,buf,0,0);
if(i>0)
write(1,buffer_get(buf),buffer_get_len(buf));
} while (i>0);