diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-05 18:35:54 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-09-05 18:35:54 +0200 |
commit | e159e8e54a865a2d1eee7543c77c3584e46464be (patch) | |
tree | 9d13c8b4cbb804067c7e89622a03b9c95c5f1dff /sys/src/libc | |
parent | 45f2fd3c01768f6483e4d583e4ca06c8e11362f4 (diff) |
strdup: set malloctag
Diffstat (limited to 'sys/src/libc')
-rw-r--r-- | sys/src/libc/port/strdup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libc/port/strdup.c b/sys/src/libc/port/strdup.c index 3d5fe523f..8ced7f21e 100644 --- a/sys/src/libc/port/strdup.c +++ b/sys/src/libc/port/strdup.c @@ -9,6 +9,6 @@ strdup(char *s) ns = malloc(strlen(s) + 1); if(ns == 0) return 0; - + setmalloctag(ns, getcallerpc(&s)); return strcpy(ns, s); } |