Mercurial > pidgin.yaz
changeset 8216:dcace041cfb8
[gaim-migrate @ 8939]
It's an uncommon practice to use strlen("SOMETHING") && strncmp(...) as the
value for a length parameter to a strncmp. I'm therefore assuming it's
wrong, and fixing it. I'm also going to get some breakfast. I was thinking
Lucky Charms, but we're about out of that, so I may go for bacon instead.
Or I could go take my shower and get some donuts. It's a tough decision.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 06 Feb 2004 22:01:05 +0000 |
parents | 83830cb8467e |
children | 423453c1cf2b |
files | src/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Fri Feb 06 20:43:55 2004 +0000 +++ b/src/protocols/yahoo/yahoo.c Fri Feb 06 22:01:05 2004 +0000 @@ -1922,8 +1922,8 @@ GString *s; len = read(source, buf, sizeof(buf)-1); - if (len <= 0 || (strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302") && - strncmp(buf, "HTTP/1.1 302", strlen("HTTP/1.1 302"))))) { + if (len <= 0 || (strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302")) && + strncmp(buf, "HTTP/1.1 302", strlen("HTTP/1.1 302")))) { gaim_connection_error(gc, _("Unable to read")); return; }