summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-15 00:42:54 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-15 00:42:54 +0000
commit206e3712fdc8231d0a8092ba719389e82f3c427c (patch)
tree1ff5a6a773746ecbf4f98b667b8f30a343e43b06 /src
parenteven if one declaration is broken, try to still read all others per http://ww... (diff)
downloadinkscape-206e3712fdc8231d0a8092ba719389e82f3c427c.tar.gz
inkscape-206e3712fdc8231d0a8092ba719389e82f3c427c.zip
gosh, what shitty coding - reading delimited string failed when it was at the very end of buffer
(bzr r2652)
Diffstat (limited to 'src')
-rw-r--r--src/libcroco/cr-tknzr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcroco/cr-tknzr.c b/src/libcroco/cr-tknzr.c
index 4e62a690e..859b6c553 100644
--- a/src/libcroco/cr-tknzr.c
+++ b/src/libcroco/cr-tknzr.c
@@ -711,13 +711,14 @@ cr_tknzr_parse_string (CRTknzr * a_this, CRString ** a_str)
guchar next_chars[2] = { 0 };
PEEK_BYTE (a_this, 1, &next_chars[0]);
- PEEK_BYTE (a_this, 2, &next_chars[1]);
if (next_chars[0] == '\\') {
guchar *tmp_char_ptr1 = NULL,
*tmp_char_ptr2 = NULL;
guint32 esc_code = 0;
+ PEEK_BYTE (a_this, 2, &next_chars[1]);
+
if (next_chars[1] == '\'' || next_chars[1] == '"') {
g_string_append_unichar (str->stryng,
next_chars[1]);