]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix a typo causing NOTRACK to fail
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 15 Nov 2012 20:18:31 +0000 (21:18 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 15 Nov 2012 20:18:31 +0000 (21:18 +0100)
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__)