[gtk+] css: Fix printing code for CSS strings and idents



commit 65c4c1555d0634c063c3aa354620de260e4aaf7f
Author: Benjamin Otte <otte redhat com>
Date:   Thu May 1 19:48:40 2014 +0200

    css: Fix printing code for CSS strings and idents
    
    It used to infloop on special characters.

 gtk/gtkcssparser.c      |    1 +
 gtk/gtkcssstringvalue.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index 16505a3..de78ae6 100644
--- a/gtk/gtkcssparser.c
+++ b/gtk/gtkcssparser.c
@@ -1051,6 +1051,7 @@ _gtk_css_print_string (GString    *str,
         g_assert_not_reached ();
         break;
       }
+    string++;
   } while (*string);
 
   g_string_append_c (str, '"');
diff --git a/gtk/gtkcssstringvalue.c b/gtk/gtkcssstringvalue.c
index 11a893a..5da9fef 100644
--- a/gtk/gtkcssstringvalue.c
+++ b/gtk/gtkcssstringvalue.c
@@ -111,6 +111,7 @@ gtk_css_value_ident_print (const GtkCssValue *value,
         g_assert_not_reached ();
         break;
       }
+    string++;
   } while (*string);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]