summaryrefslogtreecommitdiff
path: root/libexec/ld.so/strdup.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-08 06:49:21 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-08 06:49:21 +0000
commitd70d914d9394e21aae56f63f23a55cfaa1bb5b57 (patch)
tree7e8331326bebf3b4466cb66ff4c82f59c309c5b3 /libexec/ld.so/strdup.c
parentf1b4fbed12a179d3192ed31dc3fa2794578a1572 (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.c6
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);
}