]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
zone: Pass __FILE__ and __LINE__ to Mem_strdup
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index 60598cd8ab2a8895f683311b26c568264a3026d1..23258a278c0bcc74b90323f353856bcd265ed662 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -871,14 +871,14 @@ static void MemStats_f(cmd_state_t *cmd)
 }
 
 
-char* Mem_strdup (mempool_t *pool, const char* s)
+char* _Mem_strdup (mempool_t *pool, const char* s, const char *filename, int fileline)
 {
        char* p;
        size_t sz;
        if (s == NULL)
                return NULL;
        sz = strlen (s) + 1;
-       p = (char*)Mem_Alloc (pool, sz);
+       p = (char*)_Mem_Alloc (pool, NULL, sz, 16, filename, fileline);
        strlcpy (p, s, sz);
        return p;
 }