css: Fix printing code for CSS strings and idents
It used to infloop on special characters.
This commit is contained in:
parent
b356d81410
commit
65c4c1555d
@ -1051,6 +1051,7 @@ _gtk_css_print_string (GString *str,
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
string++;
|
||||
} while (*string);
|
||||
|
||||
g_string_append_c (str, '"');
|
||||
|
@ -111,6 +111,7 @@ gtk_css_value_ident_print (const GtkCssValue *value,
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
}
|
||||
string++;
|
||||
} while (*string);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user