]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
Fix a typo causing NOTRACK to fail
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index d0a1e9cfbd35c5ea359c61f2e33dec7f7c37670c..9f330da11ffdae5145717bec420e01f581a44c7c 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -215,9 +215,9 @@ uint16_t util_crc16(uint16_t crc, const char *data, size_t len);
 uint32_t util_crc32(uint32_t crc, const char *data, size_t len);
 
 #ifdef NOTRACK
-#    define mem_a(x)    malloc(x)
-#    define mem_d(x)    free  (x)
-#    define mem_r(x, n) free  (x, n)
+#    define mem_a(x)    malloc (x)
+#    define mem_d(x)    free   (x)
+#    define mem_r(x, n) realloc(x, n)
 #else
 #    define mem_a(x)    util_memory_a((x), __LINE__, __FILE__)
 #    define mem_d(x)    util_memory_d((x), __LINE__, __FILE__)