# HG changeset patch # User Mark Doliner # Date 1249032088 0 # Node ID 1c9d3038a0d3649fe1517e2e832c4e2a0f96e660 # Parent 301c966fa7af935461885f9f8f165e0820385b95 Better variable name? diff -r 301c966fa7af -r 1c9d3038a0d3 libpurple/protocols/yahoo/util.c --- a/libpurple/protocols/yahoo/util.c Fri Jul 31 09:18:07 2009 +0000 +++ b/libpurple/protocols/yahoo/util.c Fri Jul 31 09:21:28 2009 +0000 @@ -342,7 +342,7 @@ GString *s; int i, j; gchar *tmp; - gboolean no_more_end_tags = FALSE; /* s/endtags/closinganglebrackets */ + gboolean no_more_lt_brackets = FALSE; const char *match; x_len = strlen(x); @@ -350,8 +350,8 @@ for (i = 0; i < x_len; i++) { if ((x[i] == 0x1b) && (x[i+1] == '[')) { - /* This is the beginning of an escape sequence, which - * contains text formatting. */ + /* This escape sequence signifies the beginning of some + * text formatting code */ j = i + 1; while (j++ < x_len) { @@ -377,14 +377,15 @@ } } - } else if (!no_more_end_tags && (x[i] == '<')) { + } else if (!no_more_lt_brackets && (x[i] == '<')) { + /* The start of an HTML tag */ j = i; while (j++ < x_len) { if (x[j] != '>') if (j == x_len) { g_string_append(s, "<"); - no_more_end_tags = TRUE; + no_more_lt_brackets = TRUE; } else continue;