Skip to content

Commit

Permalink
REF: Avoid GLib g_memdup deprecation warning on recent Debian
Browse files Browse the repository at this point in the history
>     src/rule.c:11:5: warning: 'g_memdup' is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]
  • Loading branch information
kernc committed Jul 12, 2022
1 parent 0cca558 commit 44c4177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rule.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Rule*
xsus_rule_copy (Rule *orig)
{
Rule *rule = g_memdup (orig, sizeof (Rule));
Rule *rule = g_memdup2 (orig, sizeof (Rule));

// Duplicate strings explicitly
rule->needle_wm_name = g_strdup (orig->needle_wm_name);
Expand Down

0 comments on commit 44c4177

Please sign in to comment.