From 6fe2e218c36230726965945f26e0b583f408f44f Mon Sep 17 00:00:00 2001 From: buliabyak Date: Thu, 15 Mar 2007 00:42:54 +0000 Subject: [PATCH] gosh, what shitty coding - reading delimited string failed when it was at the very end of buffer --- src/libcroco/cr-tknzr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); -- 2.30.2