diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-08 06:49:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-08 06:49:21 +0000 |
commit | d70d914d9394e21aae56f63f23a55cfaa1bb5b57 (patch) | |
tree | 7e8331326bebf3b4466cb66ff4c82f59c309c5b3 /libexec/ld.so/strdup.c | |
parent | f1b4fbed12a179d3192ed31dc3fa2794578a1572 (diff) |
Be consistent. If we have inveted our of strlen, use it everywhere.
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); } |