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:
parent
3a97e0cb91
commit
eae65b2c07
1 changed files with 1 additions and 1 deletions
|
@ -816,7 +816,7 @@ char *rofi_force_utf8(const gchar *data, ssize_t length) {
|
||||||
GString *string;
|
GString *string;
|
||||||
|
|
||||||
if (g_utf8_validate(data, length, &end)) {
|
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);
|
string = g_string_sized_new(length + 16);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue