# HG changeset patch # User Christian Hammond # Date 1065655642 0 # Node ID 78f3252e9d10fed06ff837f24ec065f615f0127e # Parent 1f4e74bfe5bca8f6ba1988d02b9413c9a6410dae [gaim-migrate @ 7767] Error text in the dialog now displays CORRECTLY when logging into MSN with invalid info. My fix the other day was sucky and didn't work. committer: Tailor Script diff -r 1f4e74bfe5bc -r 78f3252e9d10 src/protocols/msn/notification.c --- a/src/protocols/msn/notification.c Wed Oct 08 23:13:08 2003 +0000 +++ b/src/protocols/msn/notification.c Wed Oct 08 23:27:22 2003 +0000 @@ -424,14 +424,21 @@ } else if (strstr(buffer, "HTTP/1.1 401 Unauthorized") != NULL) { - const char *error; + const char *error, *c; + char *temp; if ((error = strstr(buffer, "WWW-Authenticate")) != NULL) { if ((error = strstr(error, "cbtxt=")) != NULL) { error += strlen("cbtxt="); - error = gaim_url_decode(error); + + if ((c = strchr(error, '\n')) == NULL) + c = error + strlen(error); + + temp = g_strndup(error, c - error); + error = gaim_url_decode(temp); + g_free(temp); } }