shithub: choc

Download patch

ref: 8b8c8bf3d131445ae13cdfacdb7bb393561da0c4
parent: 3d315652c31b7858af29448b2f796ee2363a66b3
author: Alex Mayfield <alexmax2742@gmail.com>
date: Sat May 26 20:09:20 EDT 2018

Fix PNG screenshot crash with MSVC

malloc wasn't getting declared on MSVC, leading to calling an
implicitly decleared function.  I think those return int, which caused
the return value to be truncated on x64 builds, leading to an access
violation on write.

--- a/src/v_video.c
+++ b/src/v_video.c
@@ -20,6 +20,7 @@
 //
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <math.h>