ref: c0cbaafa0b421421c5367cd11d7dfaf6f40aefc7
parent: d67c5cd7ae78261a730508bc5bb4ed78ccf6fa05
author: Simon Howard <fraggle@gmail.com>
date: Tue Jan 27 17:09:40 EST 2009
Calculate size of linebuffer using sizeof (64-bit fix) Subversion-branch: /branches/raven-branch Subversion-revision: 1436
--- a/src/hexen/p_setup.c
+++ b/src/hexen/p_setup.c
@@ -617,7 +617,7 @@
}
// build line tables for each sector
- linebuffer = Z_Malloc(total * 4, PU_LEVEL, 0);
+ linebuffer = Z_Malloc(total * sizeof(line_t *), PU_LEVEL, 0);
sector = sectors;
for (i = 0; i < numsectors; i++, sector++)
{