nfs: fix real/effective id mismatch in nfs_access
[dragonfly.git] / usr.bin / awk / patches / tran.c.patch
blobb969bf9875341ec1fd6ed3a6ba58b726a678db33
1 $DragonFly: src/usr.bin/awk/patches/tran.c.patch,v 1.1 2004/11/09 08:47:36 joerg Exp $
3 Index: /tran.c
4 ===================================================================
5 RCS file: /home/dcvs/src/contrib/awk20040207/tran.c,v
6 retrieving revision 1.1.1.1
7 diff -u -p -r1.1.1.1 tran.c
8 --- tran.c 17 Apr 2004 19:41:31 -0000 1.1.1.1
9 +++ tran.c 31 Oct 2004 03:18:48 -0000
10 @@ -397,10 +397,9 @@ char *tostring(const char *s) /* make a
12 char *p;
14 - p = (char *) malloc(strlen(s)+1);
15 + p = strdup(s);
16 if (p == NULL)
17 FATAL("out of space in tostring on %s", s);
18 - strcpy(p, s);
19 return(p);