Module Name: xsrc
Committed By: wiz
Date: Sun Jun 30 11:31:43 UTC 2013
Modified Files:
xsrc/external/mit/xauth/dist: process.c
Log Message:
Use copystring instead of UNCONST.
This version has a higher chance of being accepted upstream.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/xauth/dist/process.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xauth/dist/process.c
diff -u xsrc/external/mit/xauth/dist/process.c:1.2 xsrc/external/mit/xauth/dist/process.c:1.3
--- xsrc/external/mit/xauth/dist/process.c:1.2 Fri May 31 06:46:39 2013
+++ xsrc/external/mit/xauth/dist/process.c Sun Jun 30 11:31:42 2013
@@ -1894,10 +1894,7 @@ do_generate(const char *inputfilename, i
auth_in->name = DEFAULT_PROTOCOL;
}
else
-#ifndef __UNCONST
-# define __UNCONST(x) x
-#endif
- auth_in->name = __UNCONST(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;