diff options
Diffstat (limited to 'libexec/ld.so/strdup.c')
-rw-r--r-- | libexec/ld.so/strdup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ld.so/strdup.c b/libexec/ld.so/strdup.c index c5d7615b2cb..1a277ca0554 100644 --- a/libexec/ld.so/strdup.c +++ b/libexec/ld.so/strdup.c @@ -1,6 +1,8 @@ -/* $OpenBSD: strdup.c,v 1.3 2001/04/02 23:11:21 drahn Exp $ */ +/* $OpenBSD: strdup.c,v 1.4 2001/06/08 06:49:19 art Exp $ */ #include <string.h> +#include <sys/types.h> +#include "archdep.h" void * _dl_malloc(int); @@ -8,7 +10,7 @@ char * _dl_strdup(const char *orig) { char *newstr; - newstr = _dl_malloc(strlen(orig)+1); + newstr = _dl_malloc(_dl_strlen(orig)+1); strcpy(newstr, orig); return (newstr); } |