From 815c4db23bdca1813a502ccc9cdaafd8d136e8a1 Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Wed, 28 Jun 2023 11:51:38 +0200 Subject: [PATCH] feat: trimmed password in function for safer usage --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e2a8658..16b2872 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,7 +58,7 @@ fn connect_to_network(network: &Network, password: &str) -> Result<()> { .arg("connect") .arg(&network.ssid.trim()) .arg("password") - .arg(password) + .arg(password.trim()) .output() .expect("Failed to execute command");