bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] 956 Command.cc issue


From: Fred Weigel
Subject: [Bug-apl] 956 Command.cc issue
Date: Thu, 08 Jun 2017 03:24:03 -0400

Juergen

I noticed in 956, that there is a defect in Command.cc. At line 170:

if (args_ucs[1] == '.' && args_ucs[2] == '.') many = true;

has two defects: First is that it may read off the end of the prototype string.
Second is that it doesn't work as intended. I propose:

if ((a > 1) && (args_ucs[a - 1] == '.') && (args_ucs[a - 2] == '.')) many = true;

That works (try the command )HOST ls -l for a quick test case).

Fred Weigel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]