[wiz at NetBSD.org: [PATCH:xauth] Use copystring to create non-const string.]

Thomas Klausner wiz at NetBSD.org
Thu Jul 11 02:27:15 PDT 2013


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 at NetBSD.org> -----

Date: Sun, 30 Jun 2013 13:29:44 +0200
From: Thomas Klausner <wiz at NetBSD.org>
To: xorg-devel at lists.x.org
Cc: Thomas Klausner <wiz at 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 at NetBSD.org>
---
 process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/process.c b/process.c
index 166b769..baac2cd 100644
--- a/process.c
+++ b/process.c
@@ -1892,7 +1892,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;
-- 
1.8.3.1

_______________________________________________
xorg-devel at lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


----- End forwarded message -----


More information about the xorg-devel mailing list