aboutsummaryrefslogtreecommitdiff
path: root/examples/sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sample.c')
-rw-r--r--examples/sample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sample.c b/examples/sample.c
index b716a1b0..247004e9 100644
--- a/examples/sample.c
+++ b/examples/sample.c
@@ -252,7 +252,7 @@ static void select_loop(ssh_session session,ssh_channel channel){
ssh_channel_free(channel);
channel=channels[0]=NULL;
} else
- if (write(1,ssh_buffer_get_begin(readbuf),lus) < 0) {
+ if (write(1,ssh_buffer_get(readbuf),lus) < 0) {
fprintf(stderr, "Error writing to buffer\n");
return;
}
@@ -268,7 +268,7 @@ static void select_loop(ssh_session session,ssh_channel channel){
ssh_channel_free(channel);
channel=channels[0]=NULL;
} else
- if (write(2,ssh_buffer_get_begin(readbuf),lus) < 0) {
+ if (write(2,ssh_buffer_get(readbuf),lus) < 0) {
fprintf(stderr, "Error writing to buffer\n");
return;
}