[Top][All Lists]

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

Re: Invalid use of const pointer?

From: Paul Smith
Subject: Re: Invalid use of const pointer?
Date: Mon, 17 Jan 2022 16:20:46 -0500
User-agent: Evolution 3.36.5-0ubuntu1

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()?

reply via email to

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