summaryrefslogtreecommitdiffstats
path: root/hacks/glx/boxed.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-30 16:07:15 +0200
committerSimon Rettberg2019-07-30 16:07:15 +0200
commit813ac136e48f60d4c2b13e808107870dafcc4d52 (patch)
tree396a6c98276f6e9a04216933daebdf3af7b81d46 /hacks/glx/boxed.c
parentFlush X events before locking if we have an external ungrab command (diff)
parentUpdate to 5.43 (diff)
downloadxscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.gz
xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.xz
xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.zip
Merge branch 'master' into openslx (5.43)
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;