summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-02-29 06:13:24 +0000
committergrog <grog@FreeBSD.org>2000-02-29 06:13:24 +0000
commitd2d0b1778dd457dedc3be5450994100cb714bbda (patch)
tree87b35b5107e9cd31bf0c9bd486f27f6d432531d1
parentf4fc390e0890a40a0ecd5f4079dc8c99feca5e8a (diff)
downloadFreeBSD-src-d2d0b1778dd457dedc3be5450994100cb714bbda.zip
FreeBSD-src-d2d0b1778dd457dedc3be5450994100cb714bbda.tar.gz
Malloc: Save the caller's file name in the correct entry.
-rw-r--r--sys/dev/vinum/vinummemory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vinum/vinummemory.c b/sys/dev/vinum/vinummemory.c
index 020df4e..59b5d5a 100644
--- a/sys/dev/vinum/vinummemory.c
+++ b/sys/dev/vinum/vinummemory.c
@@ -168,8 +168,8 @@ MMalloc(int size, char *file, int line)
malloced[i].size = size;
malloced[i].line = line;
malloced[i].address = result;
- bcopy(f, malloced[lastfree].file, min(strlen(f), MCFILENAMELEN - 1));
- malloced[lastfree].file[MCFILENAMELEN - 1] = '\0';
+ bcopy(f, malloced[i].file, min(strlen(f), MCFILENAMELEN - 1));
+ malloced[i].file[MCFILENAMELEN - 1] = '\0';
}
if (malloccount > highwater)
highwater = malloccount;
OpenPOWER on IntegriCloud