shithub: qk1

Download patch

ref: 3e0b750ce60f41db93750c7d959091dcbb0c6db5
parent: 08ea19ee8b2e15ade2ba7f2408a14b89225b05b5
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Nov 7 14:14:29 EST 2023

unix: don't crash on window resize

--- a/unix/vid.c
+++ b/unix/vid.c
@@ -34,7 +34,7 @@
 	vid.conheight = vid.height;
 
 	free(vidbuffer);
-	vidbuffer = emalloc(vid.width*vid.height);
+	vidbuffer = emalloc(vid.width*vid.height+16);
 
 	if(fbi != nil)
 		SDL_DestroyTexture(fbi);