Skip to content

Commit

Permalink
Replace deprecated g_memdup by g_memdup2
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDavenport committed Feb 27, 2024
1 parent 3a97e0c commit eae65b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit eae65b2

Please sign in to comment.