diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-04 22:03:46 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-04 22:03:46 +0000 |
commit | 48a153ab92b7ebde3483408993f08c208e67079c (patch) | |
tree | f3252acd430eedd378ea367f1299a4a157dc7add | |
parent | 09cf02b0457f774bd10574c0facf1df29fb83b53 (diff) |
XFree86 4.3.99.901 (RC 1)xf86-4_3_99_902xf86-4_3_99_901
-rw-r--r-- | process.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); /* |