From c44760f853818d0c991537db910848b932d4281b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Sundstr=C3=B6m?= <oyasumi@gmail.com> Date: Sat, 11 Nov 2000 04:07:53 +0100 Subject: [PATCH] Only the server is allowed to send the empty array as "0 *". Fixed a bug for AuxItemInputs too. Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Helper.pmod:1.6 --- lib/modules/Protocols.pmod/LysKOM.pmod/Helper.pmod | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/Protocols.pmod/LysKOM.pmod/Helper.pmod b/lib/modules/Protocols.pmod/LysKOM.pmod/Helper.pmod index d3a848c8fe..5a98a9d943 100644 --- a/lib/modules/Protocols.pmod/LysKOM.pmod/Helper.pmod +++ b/lib/modules/Protocols.pmod/LysKOM.pmod/Helper.pmod @@ -21,8 +21,7 @@ string B(int(0..1) ... z) // encode bitfield array(string) A(array z) // encode array { - if (!sizeof(z)) return ({"0","*"}); - return ({""+sizeof(z),"{ "+encode(@z)+" }"}); + return ({ ""+sizeof(z), "{ "+encode(@Array.flatten(z))+" }" }); } class LysKOMError -- GitLab