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>
This commit is contained in:
Simon McVittie
2022-01-26 13:53:14 +00:00
committed by Alexander Larsson
parent 81d40fc8fa
commit 39823be84f

View File

@@ -177,7 +177,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;
}