From eae65b2c07c7d1dc2205c09355e8d35da21690a4 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 27 Feb 2024 20:53:26 +0100 Subject: [PATCH] Replace deprecated g_memdup by g_memdup2 --- source/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/helper.c b/source/helper.c index 34d6bc01..53f366bf 100644 --- a/source/helper.c +++ b/source/helper.c @@ -816,7 +816,7 @@ char *rofi_force_utf8(const gchar *data, ssize_t length) { GString *string; if (g_utf8_validate(data, length, &end)) { - return g_memdup(data, length + 1); + return g_memdup2(data, length + 1); } string = g_string_sized_new(length + 16);