From ed0afb2bb5b253de2af70223d6771b3b11201b64 Mon Sep 17 00:00:00 2001 From: Michael Mikonos Date: Mon, 21 Aug 2023 21:26:08 +0800 Subject: [PATCH] * By default, print_all_length is 64 and i counts from 0 to 63, covering all bits of flags * Bt(&flags,64) probably doesn't make sense, so it might be safer to set a maximum cap value * I have not tested this --- src/Kernel/StrB.ZC | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kernel/StrB.ZC b/src/Kernel/StrB.ZC index 89bb0cfb..631c96b4 100755 --- a/src/Kernel/StrB.ZC +++ b/src/Kernel/StrB.ZC @@ -212,7 +212,7 @@ U8 *FlagsStrPrint(U8 *dst, U8 *list, I64 flags, Bool print_all=FALSE, I64 print_ I64 i = 0; *dst = 0; - if (!print_all_length) + if (!print_all_length || print_all_length > 64) print_all_length = 64; while (i < print_all_length) {