]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
com: rename BSD strlcpy and strlcat
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index 40708bd6913ed713811d61c4c8443446db09c806..1035eb96f264a6dd93909bae6d5a008f3585db7e 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -520,7 +520,7 @@ mempool_t *_Mem_AllocPool(const char *name, int flags, mempool_t *parent, const
        List_Create(&pool->chain);
        pool->totalsize = 0;
        pool->realsize = sizeof(mempool_t);
-       strlcpy (pool->name, name, sizeof (pool->name));
+       dp_strlcpy (pool->name, name, sizeof (pool->name));
        pool->parent = parent;
        pool->next = poolchain;
        poolchain = pool;
@@ -870,7 +870,7 @@ char* _Mem_strdup (mempool_t *pool, const char* s, const char *filename, int fil
                return NULL;
        sz = strlen (s) + 1;
        p = (char*)_Mem_Alloc (pool, NULL, sz, 16, filename, fileline);
-       strlcpy (p, s, sz);
+       dp_strlcpy (p, s, sz);
        return p;
 }