diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2013-07-11 11:27:15 +0200 |
---|---|---|
committer | Dr. Tilmann Bubeck <t.bubeck@reinform.de> | 2013-09-24 08:52:30 +0200 |
commit | 2440a254797cc3655c8743a9232f30a693f6f947 (patch) | |
tree | 7b09ad6f7eafa446797af39f40bab21ecb28d86b /process.c | |
parent | eee471e446405350c02c221f044a70669dac48a2 (diff) | |
download | xorg-app-xauth-2440a254797cc3655c8743a9232f30a693f6f947.tar.gz |
Use copystring to create non-const string.]
Hello!
I see you're the official xauth maintainer according to
http://cgit.freedesktop.org/xorg/doc/xorg-docs/tree/MAINTAINERS#n80
Can you please take a look at the attached patch and merge it?
Thanks,
Thomas
----- Forwarded message from Thomas Klausner <wiz@NetBSD.org> -----
Date: Sun, 30 Jun 2013 13:29:44 +0200
From: Thomas Klausner <wiz@NetBSD.org>
To: xorg-devel@lists.x.org
Cc: Thomas Klausner <wiz@NetBSD.org>
Subject: [PATCH:xauth] Use copystring to create non-const string.
Fixes "error: assignment discards qualifiers from pointer target type"
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1895,7 +1895,7 @@ do_generate(const char *inputfilename, int lineno, int argc, const char **argv) auth_in->name = DEFAULT_PROTOCOL; } else - auth_in->name = protoname; + auth_in->name = copystring (protoname, strlen(protoname)); auth_in->name_length = strlen(auth_in->name); auth_in->data = authdata; auth_in->data_length = authdatalen; |