css: Fix printing code for CSS strings and idents

It used to infloop on special characters.
This commit is contained in:
Benjamin Otte 2014-05-01 19:48:40 +02:00
parent b356d81410
commit 65c4c1555d
2 changed files with 2 additions and 0 deletions

View File

@ -1051,6 +1051,7 @@ _gtk_css_print_string (GString *str,
g_assert_not_reached ();
break;
}
string++;
} while (*string);
g_string_append_c (str, '"');

View File

@ -111,6 +111,7 @@ gtk_css_value_ident_print (const GtkCssValue *value,
g_assert_not_reached ();
break;
}
string++;
} while (*string);
}