bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] 956 Command.cc issue


From: Juergen Sauermann
Subject: Re: [Bug-apl] 956 Command.cc issue
Date: Thu, 8 Jun 2017 19:38:33 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Fred,

thanks, fixed in SVN 957.

/// Jürgen



On 06/08/2017 09:24 AM, Fred Weigel wrote:
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]