diff options
Diffstat (limited to 'libexec/ld.so/util.c')
-rw-r--r-- | libexec/ld.so/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/util.c b/libexec/ld.so/util.c index 4b3cce6199d..5313e4db2fc 100644 --- a/libexec/ld.so/util.c +++ b/libexec/ld.so/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.4 2002/05/24 18:37:38 drahn Exp $ */ +/* $OpenBSD: util.c,v 1.5 2002/05/28 00:22:01 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -49,6 +49,7 @@ _dl_strdup(const char *orig) { char *newstr; int len; + len = _dl_strlen(orig)+1; newstr = _dl_malloc(len); _dl_strlcpy(newstr, orig, len); @@ -67,8 +68,7 @@ _dl_strdup(const char *orig) void * _dl_malloc(int size) { - long *p; - long *t, *n; + long *p, *t, *n; size = (size + 8 + DL_MALLOC_ALIGN - 1) & ~(DL_MALLOC_ALIGN - 1); |