ref: 5950a385d4cc9cb2be457bff84fdac3b1026cdd2
parent: 9772afab3430498714049a32186920e0cb9a67d3
author: Simon Howard <fraggle@gmail.com>
date: Fri Mar 24 11:51:28 EST 2006
Use "sizeof(line_t *)" not "4". Fixes 64-bit builds. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 432
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: p_setup.c 356 2006-01-29 15:07:12Z fraggle $
+// $Id: p_setup.c 432 2006-03-24 16:51:28Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -45,7 +45,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: p_setup.c 356 2006-01-29 15:07:12Z fraggle $";
+rcsid[] = "$Id: p_setup.c 432 2006-03-24 16:51:28Z fraggle $";
#include <math.h>
@@ -556,7 +556,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++)
{