summaryrefslogtreecommitdiffstats
path: root/hacks/glx/boxed.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/glx/boxed.c')
-rw-r--r--hacks/glx/boxed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hacks/glx/boxed.c b/hacks/glx/boxed.c
index 6ce82bb..7d1b5d0 100644
--- a/hacks/glx/boxed.c
+++ b/hacks/glx/boxed.c
@@ -1248,7 +1248,7 @@ pinit(ModeInfo * mi)
gp->tic = gp->camtic = rnd() * 100.0f;
/* define tex1 (bottom plate) */
- gp->tex1 = (char *)malloc(3*width*height*sizeof(GLuint));
+ gp->tex1 = (char *)malloc(3*width*height*sizeof(*gp->tex1));
texpixels = 256*256; /*width*height;*/
texpixeldata = header_data;
texpixeltarget = gp->tex1;