]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
the -profilegameonly option now stops profiling in CL_Disconnect to give
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index 32655d9ad143e38fa8e9d390d6f62dd2d4b8fcd4..2ab390bd8ae8e0bba09ad3f564d139c55b288b74 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -558,6 +558,16 @@ void MemStats_f(void)
 }
 
 
+char* Mem_strdup (mempool_t *pool, const char* s)
+{
+       char* p;
+       size_t sz = strlen (s) + 1;
+       if (s == NULL) return NULL;
+       p = (char*)Mem_Alloc (pool, sz);
+       strlcpy (p, s, sz);
+       return p;
+}
+
 /*
 ========================
 Memory_Init