[Top][All Lists]

[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

Best regards Henrik

reply via email to

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