aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-systemd-journal.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2021-03-23 16:41:54 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-03-25 09:38:10 +0000
commitea929d6401351916e0abca7429979eee9c47d3f2 (patch)
tree522492a802e608e8049fa5a3586477053002bce0 /epan/dissectors/packet-systemd-journal.c
parente6df13076281a704e9dd1aa8c2afe3e7dce015e3 (diff)
wsutils: add local implementation of g_memdup2.
g_memdup() was deprecated and replaced with g_memdup2() in GLib 2.68, we provide our own copy of g_memdup2() for older GLib versions.
Diffstat (limited to 'epan/dissectors/packet-systemd-journal.c')
-rw-r--r--epan/dissectors/packet-systemd-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-systemd-journal.c b/epan/dissectors/packet-systemd-journal.c
index 9b450552c1..bab338eb55 100644
--- a/epan/dissectors/packet-systemd-journal.c
+++ b/epan/dissectors/packet-systemd-journal.c
@@ -287,7 +287,7 @@ static void init_jf_to_hf_map(void) {
{ hf_sj_systemd_user_slice, "_SYSTEMD_USER_SLICE=" },
{ 0, NULL }
};
- jf_to_hf = (journal_field_hf_map*) g_memdup(jhmap, sizeof(jhmap));
+ jf_to_hf = (journal_field_hf_map*) g_memdup2(jhmap, sizeof(jhmap));
}
static void