From bcc923602fbbcb50a35e7870aec6b26c96175c10 Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Sun, 15 Nov 2026 18:44:38 -0500 Subject: fixes to map --- text/cstr.tnsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text') diff --git a/text/cstr.tnsl b/text/cstr.tnsl index bf68c7f..01e300c 100644 --- a/text/cstr.tnsl +++ b/text/cstr.tnsl @@ -2,7 +2,7 @@ /; module cstr /; eq (~uint8 a, b) [bool] - /; loop (a` == b` && a` !== 0 && b` !== 0) [a++; b++] ;/ + /; loop (a` == b` && a` !== 0) [a++; b++] ;/ /; if (b` == 0 && a` == 0) return true @@ -18,7 +18,7 @@ ;/ /; copy (~uint8 str) [~uint8] - ~uint8 out = _alloc(length(str)) + ~uint8 out = _alloc(length(str) + 1) int i = 0 /; loop (str{i} !== 0) [out{i} = str{i}; i++] ;/ -- cgit v1.3.1