diff options
author | Benjamin Otte <otte@redhat.com> | 2014-10-22 03:38:20 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-10-22 03:39:17 +0200 |
commit | 7d9677045336ddfdf321cb725ea5ddeda872cf67 (patch) | |
tree | 1f024fc00f44d0f65c78f4b5a616a6ffce2d98ae /gtk/gtkcssnodedeclaration.c | |
parent | cf5f6759f0e6b5dfa62dc4c89c72800f0b414e9d (diff) | |
download | gtk+-7d9677045336ddfdf321cb725ea5ddeda872cf67.tar.gz |
cssnodedeclaration: Fix src/dest swap in memmove()
The main cause here were the wrong style classes being removed, such as
"message-dialog" instead of "csd" for GtkMessageDialog.
Diffstat (limited to 'gtk/gtkcssnodedeclaration.c')
-rw-r--r-- | gtk/gtkcssnodedeclaration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssnodedeclaration.c b/gtk/gtkcssnodedeclaration.c index b5874ff177..1c099304c0 100644 --- a/gtk/gtkcssnodedeclaration.c +++ b/gtk/gtkcssnodedeclaration.c @@ -90,7 +90,7 @@ gtk_css_node_declaration_make_writable_resize (GtkCssNodeDeclaration **decl, if ((*decl)->refcount == 1) { if (bytes_removed > 0 && old_size - offset - bytes_removed > 0) - memmove (((char *) *decl) + offset + bytes_removed, ((char *) *decl) + offset, old_size - offset - bytes_removed); + memmove (((char *) *decl) + offset, ((char *) *decl) + offset + bytes_removed, old_size - offset - bytes_removed); *decl = g_realloc (*decl, new_size); if (bytes_added > 0 && old_size - offset > 0) memmove (((char *) *decl) + offset + bytes_added, ((char *) *decl) + offset, old_size - offset); |