From 5a3ee3a46e25f71d7f0f5f075e0a424b9ca3cd64 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Wed, 3 Mar 2021 12:16:47 -0700 Subject: [PATCH] has_tail must be false for use as a filename from open/{3,4} --- src/machine/system_calls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/system_calls.rs b/src/machine/system_calls.rs index 1ffa227e..af8e3e7e 100644 --- a/src/machine/system_calls.rs +++ b/src/machine/system_calls.rs @@ -3111,7 +3111,7 @@ impl MachineState { self.stream_from_file_spec(atom, indices, &options)? } Addr::PStrLocation(h, n) => match &self.heap[h] { - &HeapCellValue::PartialString(_, true) => { + &HeapCellValue::PartialString(_, _has_tail @ false) => { let mut heap_pstr_iter = self.heap_pstr_iter(Addr::PStrLocation(h, n)); let file_spec = clause_name!(heap_pstr_iter.to_string(), self.atom_tbl); -- 2.54.0