summaryrefslogtreecommitdiff
path: root/sys/libkern/strdup.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-02-25 22:11:39 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-02-25 22:11:39 +0000
commit354d43abf30325d0059644e2b7bfe2d194041c99 (patch)
tree70fd88f9ba7b8e2d04834e82ef3c97ee8383e902 /sys/libkern/strdup.c
parent9fed9b054d1c629e87d622ad810f75bcc2621807 (diff)
Notes
Diffstat (limited to 'sys/libkern/strdup.c')
-rw-r--r--sys/libkern/strdup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/libkern/strdup.c b/sys/libkern/strdup.c
index 74953ffeca60..82cece0c1d24 100644
--- a/sys/libkern/strdup.c
+++ b/sys/libkern/strdup.c
@@ -42,13 +42,13 @@
MALLOC_DEFINE(M_STRING, "string", "string buffers");
char *
-strdup(const char *string)
+strdup(const char *string, struct malloc_type *type)
{
size_t len;
char *copy;
len = strlen(string) + 1;
- copy = malloc(len, M_STRING, M_WAITOK);
+ copy = malloc(len, type, M_WAITOK);
bcopy(string, copy, len);
return (copy);
}