From fa9502106544069d9bcb6b9bb7a716b6fe9ee2ea Mon Sep 17 00:00:00 2001
From: ascendforever <georgeh124v2@gmail.com>
Date: Wed, 25 Oct 2023 13:36:48 -0400
Subject: [PATCH] minor change to capacity estimation

---
 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 6389146..2b4768c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -193,7 +193,7 @@ fn assert_all_same_device(paths: &[PathBuf]) -> Result<(), String> {
     if wrong.is_empty() {
         Ok(())
     } else {
-        let mut s = String::with_capacity(wrong.len()*120); // 67 max estimated len of path, 52 for prefix msg, 1 for newline
+        let mut s = String::with_capacity(wrong.len()*128); // 75 max estimated len of path, 53 for prefix msg + nl
         for path in wrong {
             s.push_str("Device ids must all be the same; got different for: {}");
             s.push_str(&shlex::quote(&path.to_string_lossy()));