summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-07 08:21:37 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-11-07 08:21:37 -0800
commitf16c5023f70445f7621246c7d7d31aaa1d9d5648 (patch)
tree9d4a178b5137451a5d0b51670a491d7bcd5a3f61 /src
parent84a9129a16ad1ce3443b4bf8465ac92ad812be49 (diff)
downloadssh2-rs-f16c5023f70445f7621246c7d7d31aaa1d9d5648.zip
Update to rust master
Diffstat (limited to 'src')
-rw-r--r--src/sftp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sftp.rs b/src/sftp.rs
index dc19e5d..40b8c59 100644
--- a/src/sftp.rs
+++ b/src/sftp.rs
@@ -272,7 +272,7 @@ impl<'a> Sftp<'a> {
};
if rc == raw::LIBSSH2_ERROR_BUFFER_TOO_SMALL {
let cap = ret.capacity();
- ret.reserve_additional(cap);
+ ret.reserve(cap);
} else {
break
}
@@ -395,7 +395,7 @@ impl<'a> File<'a> {
};
if rc == raw::LIBSSH2_ERROR_BUFFER_TOO_SMALL {
let cap = buf.capacity();
- buf.reserve_additional(cap);
+ buf.reserve(cap);
} else {
break
}