]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - util.c
Better scheme
[xonotic/gmqcc.git] / util.c
diff --git a/util.c b/util.c
index efed22177948bb1fbcf53a78d796ecd76eb3fc1b..ca8f2e87ae5d49213400bf13021118a12ba7be59 100644 (file)
--- a/util.c
+++ b/util.c
@@ -23,6 +23,7 @@
  */
 #include <string.h>
 #include <ctype.h>
+#include <stdlib.h>
 
 #include "gmqcc.h"
 
@@ -320,7 +321,7 @@ int util_asprintf(char **ret, const char *fmt, ...) {
 
         allocated = (char*)mem_a(4096); /* A page must be enough */
         strerror_s(allocated, 4096, num);
-    
+
         vec_push(vector, allocated);
         return (const char *)allocated;
     }