summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-11-01 09:28:34 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-11-01 09:28:34 -0800
commit0f210fe845f36d5d6554d2adc593ec65a273f56e (patch)
treedd39565e8bbfbc4af840063fddd029fc01664dfb /tests
parentd9919fb8f8539d4ddb2051735edf36dcd3b38318 (diff)
downloadssh2-rs-0f210fe845f36d5d6554d2adc593ec65a273f56e.zip
Add +1 reservation for trailing zero in write_string
Diffstat (limited to 'tests')
-rw-r--r--tests/knownhosts.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/knownhosts.rs b/tests/knownhosts.rs
index d23d213..f3a67fd 100644
--- a/tests/knownhosts.rs
+++ b/tests/knownhosts.rs
@@ -35,6 +35,7 @@ CZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2R\
PW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi\
/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==");
- assert_eq!(hosts.write_string(&host, KnownHostFileKind::OpenSSH).unwrap(), encoded);
+ assert_eq!(hosts.write_string(&host, KnownHostFileKind::OpenSSH).unwrap(),
+ encoded);
hosts.remove(host).unwrap();
}