diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-08-18 09:04:16 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-08-18 09:05:45 +0200 |
commit | 46bff47975fb89a0e3fa38266aef7f6a8ca988de (patch) | |
tree | 46e8363c2d3682776a5e68a0e60e5317847958c2 | |
parent | f718b50b3fd7fde16edc3c68c28aab9d5b66f18c (diff) | |
download | libssh-46bff47975fb89a0e3fa38266aef7f6a8ca988de.tar.gz libssh-46bff47975fb89a0e3fa38266aef7f6a8ca988de.tar.xz libssh-46bff47975fb89a0e3fa38266aef7f6a8ca988de.zip |
doc: Fix typos in sftp tutorial
Thanks to Anthony Baker <AnthonyBaker@fico.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit da4bebbe1e0384baec004641618bd981f50894ff)
-rw-r--r-- | doc/sftp.dox | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/sftp.dox b/doc/sftp.dox index 8b7c7e1a..110976e0 100644 --- a/doc/sftp.dox +++ b/doc/sftp.dox @@ -253,7 +253,7 @@ int sftp_read_sync(ssh_session session, sftp_session sftp) return SSH_ERROR; } - nwritten = write(fd, buf, nbytes); + nwritten = write(fd, buffer, nbytes); if (nwritten != nbytes) { fprintf(stderr, "Error writing: %s\n", strerror(errno)); @@ -282,7 +282,7 @@ sftp_async_read() waits for the data to come. To open a file in nonblocking mode call sftp_file_set_nonblocking() right after you opened it. Default is blocking mode. The example below reads a very big file in asynchronous, nonblocking, mode. Each -time the data are not ready yet, a counter is incrementer. +time the data is not ready yet, a counter is incremented. @code // Good chunk size |