bug-make
[Top][All Lists]
Advanced

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

Re: Invalid use of const pointer?


From: Jon Forrest
Subject: Re: Invalid use of const pointer?
Date: Mon, 17 Jan 2022 14:47:40 -0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 1/17/2022 1:20 PM, Paul Smith wrote:
On Sun, 2022-01-09 at 20:02 -0500, Joe Filion wrote:
If interested, I found another similar construct in another area of
the code. Don’t worry, this appears to be the last one.

On line 557 of implicit.c:
                   p = strchr (nptr, '%');
nptr is a const pointer, but p is used as a non-const pointer later
on and modifies the string.

I see this line, but I don't see where p is used to modify the string.

Maybe I am missing something?  Can you show where the modification
happens, not just the strchr()?

I remember sending this, but I no longer remember what I was referring
to.

Please disregard.

Thanks,
Jon





reply via email to

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