run: Avoid cast warning when built with -Wwrite-strings

We're not going to call XauDisposeAuth on local_xa, so it's OK to put
a "borrowed" constant string here.

Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 39823be84f1ff23f4efb97b7ef99dd92889d0559)
This commit is contained in:
Simon McVittie 2022-01-26 13:53:14 +00:00 committed by Phaedrus Leeds
parent 723ae9d5fa
commit aa5db72e1c

View File

@ -176,7 +176,7 @@ write_xauth (char *number, FILE *output)
local_xa = *xa;
if (local_xa.number)
{
local_xa.number = "99";
local_xa.number = (char *) "99";
local_xa.number_length = 2;
}