[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid use of const pointer?
From: |
Henrik Carlqvist |
Subject: |
Re: Invalid use of const pointer? |
Date: |
Sun, 9 Jan 2022 20:10:12 +0100 |
On Sun, 09 Jan 2022 10:17:10 -0500
Paul Smith <psmith@gnu.org> wrote:
> In any event, the bug still exists whether you say the argument is
> const or not: the expectation when this function is called is that
> after it returns the string passed to it has the same content as before
> it was called.
If so I agree that the best quick and easy fix would be to restore the
original value. A fix involving more work would be to copy the const
input string to some temporary string that the function is free to alter as it
wants.
Best regards Henrik
- Invalid use of const pointer?, Joe Filion, 2022/01/07
- 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/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 <=
- 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, 2022/01/17
- 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