aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vinum/vinummemory.c
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2000-02-29 06:13:24 +0000
committerGreg Lehey <grog@FreeBSD.org>2000-02-29 06:13:24 +0000
commite08bedf9bf552826a2e326009ce162e24417de22 (patch)
treefd3636a64932c5379007c2fb387e0d29eb26bca0 /sys/dev/vinum/vinummemory.c
parent6992cfe9739967d2fb2114f3053ac18dc5c77059 (diff)
Notes
Diffstat (limited to 'sys/dev/vinum/vinummemory.c')
-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 020df4e9ab6e..59b5d5a94fe4 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;