bcopy -> memcpy
This commit is contained in:
parent
abd8200176
commit
4af41fe4b3
@ -33,7 +33,7 @@
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strdup.c 5.4 (Berkeley) 2/24/91";*/
|
||||
static char *rcsid = "$Id: strdup.c,v 1.4 1994/06/11 16:49:16 jtc Exp $";
|
||||
static char *rcsid = "$Id: strdup.c,v 1.5 1995/04/14 19:25:13 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -49,6 +49,6 @@ strdup(str)
|
||||
len = strlen(str) + 1;
|
||||
if (!(copy = malloc((u_int)len)))
|
||||
return((char *)NULL);
|
||||
bcopy(str, copy, len);
|
||||
memcpy(copy, str, len);
|
||||
return(copy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user