[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] 956 Command.cc issue
From: |
enztec |
Subject: |
Re: [Bug-apl] 956 Command.cc issue |
Date: |
Thu, 8 Jun 2017 11:54:47 -0600 |
my )host ls -l (pre fix) seems to work what is it not doing that it should
be doing?
On Thu, 8 Jun 2017 19:38:33 +0200
Juergen Sauermann <address@hidden> wrote:
> 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
>
>