From: buliabyak Date: Thu, 15 Mar 2007 00:42:54 +0000 (+0000) Subject: gosh, what shitty coding - reading delimited string failed when it was at the very... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6fe2e218c36230726965945f26e0b583f408f44f;p=inkscape.git gosh, what shitty coding - reading delimited string failed when it was at the very end of buffer --- 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]);