1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

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

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