[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()?
- Re: Invalid use of const pointer?, (continued)
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/08
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/08
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/08
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/08
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/09
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/09
- Re: Invalid use of const pointer?, Henrik Carlqvist, 2022/01/09
- Re: Invalid use of const pointer?, Edward Welbourne, 2022/01/11
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/11
- RE: Invalid use of const pointer?, Joe Filion, 2022/01/09
- Re: Invalid use of const pointer?,
Paul Smith <=
- Re: Invalid use of const pointer?, Jon Forrest, 2022/01/17
- RE: Invalid use of const pointer?, Joe Filion, 2022/01/18
- Re: Invalid use of const pointer?, Jon Forrest, 2022/01/18
- Re: Invalid use of const pointer?, Paul Smith, 2022/01/19