On Sun, 09 Jan 2022 10:17:10 -0500
Paul Smith <psm...@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

Reply via email to