[gnome-system-monitor] src/openfiles: Don't use deprecated function



commit 11b664107fac442f45fea29665fa2ed9e71b1170
Author: Ondřej Míchal <harrymichal seznam cz>
Date:   Mon Apr 11 03:17:59 2022 +0300

    src/openfiles: Don't use deprecated function

 src/openfiles.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/openfiles.cpp b/src/openfiles.cpp
index edf359bf..f5f479ae 100644
--- a/src/openfiles.cpp
+++ b/src/openfiles.cpp
@@ -121,7 +121,7 @@ add_new_files (gpointer key, gpointer value, gpointer data)
                         COL_FD, openfiles->fd,
                         COL_TYPE, get_type_name(static_cast<glibtop_file_type>(openfiles->type)),
                         COL_OBJECT, object,
-                        COL_OPENFILE_STRUCT, g_memdup(openfiles, sizeof(*openfiles)),
+                        COL_OPENFILE_STRUCT, g_memdup2 (openfiles, sizeof (*openfiles)),
                         -1);
 
     g_free(object);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]