From 5c51ddc49e636ce6c9c50778361e98791c0e2680 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sun, 14 May 2023 18:24:01 -0700 Subject: [PATCH] Bug fix --- fuzz/fuzz_targets/fuzz_write.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuzz/fuzz_targets/fuzz_write.rs b/fuzz/fuzz_targets/fuzz_write.rs index c7085ccc..a068ff07 100644 --- a/fuzz/fuzz_targets/fuzz_write.rs +++ b/fuzz/fuzz_targets/fuzz_write.rs @@ -30,7 +30,8 @@ pub struct FileOperation { impl FileOperation { fn referenceable_name(&self) -> &str { - if let WriteDirectory(_) = self.basic { + if let WriteDirectory(_) = self.basic && !self.name.ends_with('\\') + && !self.name.ends_with('/') { self.name + "/" } else { self.name