From 6270ad35b2f7b71dbc0a76b825f2f3ca07f936d2 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 5 Jul 2022 10:31:39 -0700 Subject: [PATCH] client: Fix build warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following build warning: warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations] --- client/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/player.c b/client/player.c index 3e9a457ec..0c59db648 100644 --- a/client/player.c +++ b/client/player.c @@ -1340,7 +1340,7 @@ static uint8_t *str2bytearray(char *arg, size_t *val_len) *val_len = i; - return g_memdup(value, i); + return util_memdup(value, i); } static void select_config_response(const char *input, void *user_data) -- 2.47.3