Code

gosh, what shitty coding - reading delimited string failed when it was at the very...
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 15 Mar 2007 00:42:54 +0000 (00:42 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 15 Mar 2007 00:42:54 +0000 (00:42 +0000)
src/libcroco/cr-tknzr.c

index 4e62a690efbf6a6d612c360e4b2d144483a76661..859b6c5536021eb54d3c3607af1d8bbfe73ca8cf 100644 (file)
@@ -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]);