Skip to content
Snippets Groups Projects
Commit c44760f8 authored by Johan Sundström's avatar Johan Sundström
Browse files

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
parent 635ffe56
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment