bug-bash
[Top][All Lists]
Advanced

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

Re: Incorrect string length check


From: Chet Ramey
Subject: Re: Incorrect string length check
Date: Sat, 25 May 2024 15:27:25 -0400
User-agent: Mozilla Thunderbird

On 5/23/24 9:55 PM, Collin Funk wrote:
Hi Chet,

In this commit in the devel branch:

commit 03c8c43b79177fa678714893e9f05b1c517592c0
Author: Chet Ramey <chet.ramey@case.edu>
Date:   Fri Apr 5 09:03:52 2024 -0400

     man page typesetting updates for compatibilityand layout issues

I think there was a typo in execute_cmd.c:
        [...]
Shouldn't that condition be something like this:

     if (ilen > 0 && interp[ilen - 1] == '\r')
       {
         /* Rest of code.  */
       }

Yep, good typo catch. Thanks.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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