@Thomas Richter. Its very interesting, could you provide some 'bad' name example. I tried some cases but without luck. Always was zero at the end.
I tried following name length cases (kick 1.3): one char , two chars, 31 chars.
I know that cli_CommandName is a BCPL type, but I think that internally is copied c-style string into address of cli_CommandName.
As I checked on kick1.3 name in cli_Command is always 'clear' mean there is no trash after 'end' of name. Probably because there is no history buffer in k1.3.
In kick3.1 there is a trash chars but name is always ends with zero.
If I am wrong then please correct me. Thanks a lot.
|