summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-01-31 14:42:00 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-01-31 14:42:00 +0100
commit2882d4acdbf505dd78081a21fd3fb0215354d824 (patch)
treeab9d6283086dc25ca95b30a1594392eed045a024
parent9f6d174f351e4c115aac2017fa347124bbd5fef6 (diff)
downloadmullvadvpn-2882d4acdbf505dd78081a21fd3fb0215354d824.tar.xz
mullvadvpn-2882d4acdbf505dd78081a21fd3fb0215354d824.zip
Fix spelling: null-terminated
-rw-r--r--talpid_openvpn_plugin/src/ffi/parse.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/talpid_openvpn_plugin/src/ffi/parse.rs b/talpid_openvpn_plugin/src/ffi/parse.rs
index 14f1bdf8d5..47a057abb9 100644
--- a/talpid_openvpn_plugin/src/ffi/parse.rs
+++ b/talpid_openvpn_plugin/src/ffi/parse.rs
@@ -18,14 +18,14 @@ error_chain!{
}
-/// Parses a null terminated C string array into a Vec<String> for safe usage.
+/// Parses a null-terminated C string array into a Vec<String> for safe usage.
///
/// Returns an Err if given a null pointer or if a string is not valid utf-8.
///
/// # Segfaults
///
/// Can cause the program to crash if the pointer array starting at `ptr` is not correctly null
-/// terminated. Likewise, if any string pointed to is not properly null terminated it may crash.
+/// terminated. Likewise, if any string pointed to is not properly null-terminated it may crash.
pub unsafe fn string_array(mut ptr: *const *const c_char) -> Result<Vec<String>> {
if ptr.is_null() {
Err(Error::from(ErrorKind::Null))
@@ -41,9 +41,9 @@ pub unsafe fn string_array(mut ptr: *const *const c_char) -> Result<Vec<String>>
}
-/// Parses a null terminated array of C strings with "=" delimiters into a key-value map.
+/// Parses a null-terminated array of C strings with "=" delimiters into a key-value map.
///
-/// The input environment has to contain null terminated strings containing at least
+/// The input environment has to contain null-terminated strings containing at least
/// one equal sign ("="). Every string is split at the first equal sign and added to the map with
/// the first part being the key and the second the value.
///