summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-12-04 22:03:46 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-12-04 22:03:46 +0000
commit48a153ab92b7ebde3483408993f08c208e67079c (patch)
treef3252acd430eedd378ea367f1299a4a157dc7add
parent09cf02b0457f774bd10574c0facf1df29fb83b53 (diff)
XFree86 4.3.99.901 (RC 1)xf86-4_3_99_902xf86-4_3_99_901
-rw-r--r--process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/process.c b/process.c
index ee5b41b..1c5cbe4 100644
--- a/process.c
+++ b/process.c
@@ -26,7 +26,7 @@ other dealings in this Software without prior written authorization
from The Open Group.
*/
-/* $XFree86: xc/programs/xauth/process.c,v 3.22 2003/07/18 15:53:28 tsi Exp $ */
+/* $XFree86: xc/programs/xauth/process.c,v 3.23 2003/11/25 03:15:04 dawes Exp $ */
/*
* Author: Jim Fulton, MIT X Consortium
@@ -1520,7 +1520,7 @@ do_add(char *inputfilename, int lineno, int argc, char **argv)
return 1;
}
auth->data_length = len;
- auth->data = copystring(key, len);
+ auth->data = malloc(len);
if (!auth->data) {
prefix(inputfilename, lineno);
fprintf(stderr, "unable to allocate %d bytes for key\n", len);
@@ -1532,6 +1532,7 @@ do_add(char *inputfilename, int lineno, int argc, char **argv)
free(key);
return 1;
}
+ memcpy(auth->data, key, len);
}
free(key);
/*