]> git.proxmox.com Git - pve-cluster.git/blobdiff - data/src/database.c
pmxcfs: migrate to g_memdup2
[pve-cluster.git] / data / src / database.c
index aa230e90ec5d12255d10f7699444a3f3a1a48950..d1c15a75b40d5a47a1261009017a0cb043d1c053 100644 (file)
@@ -351,7 +351,7 @@ static gboolean bdb_backend_load_index(
 
                if (te->type == DT_REG) {
                        if (size > 0)
-                               te->data.value = g_memdup(value, size);
+                               te->data.value = g_memdup2(value, size);
                } else if (te->type == DT_DIR) {
                        if (size) {
                                cfs_critical("directory inode contains data (inode = %016" PRIX64 ")",