From: Robert Pengelly Date: Tue, 24 Sep 2024 01:51:21 +0000 (+0100) Subject: Make sure we don't exceed 255 characters when copying environment variables X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=f03735e5572310520a64b3934e89347d70da6995;p=chimaera.git Make sure we don't exceed 255 characters when copying environment variables --- diff --git a/build/chimaera.img b/build/chimaera.img index cecc6fb..698dc90 100644 Binary files a/build/chimaera.img and b/build/chimaera.img differ diff --git a/build/chimaera.vhd b/build/chimaera.vhd index 126a746..39e436e 100644 Binary files a/build/chimaera.vhd and b/build/chimaera.vhd differ diff --git a/src/apps/pcomm/pcomm.asm b/src/apps/pcomm/pcomm.asm index eda34b5..d2baea8 100644 --- a/src/apps/pcomm/pcomm.asm +++ b/src/apps/pcomm/pcomm.asm @@ -1736,6 +1736,12 @@ _expand_vars: .L94: + mov cx, di + sub cx, dx + + cmp cx, 255 + jae .L84 + lodsb and al, al