Replace deprecated g_memdup by g_memdup2

This commit is contained in:
Dave Davenport 2024-02-27 20:53:26 +01:00
parent 3a97e0cb91
commit eae65b2c07
1 changed files with 1 additions and 1 deletions

View File

@ -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);