src/protocols/yahoo/yahoo.c

changeset 8216
9c4bc4d5a373
parent 8212
ba23de5af029
child 8235
00045afab151
equal deleted inserted replaced
8215:7a9a156d93d9 8216:9c4bc4d5a373
1920 char buf[1024], *i = buf; 1920 char buf[1024], *i = buf;
1921 int len; 1921 int len;
1922 GString *s; 1922 GString *s;
1923 1923
1924 len = read(source, buf, sizeof(buf)-1); 1924 len = read(source, buf, sizeof(buf)-1);
1925 if (len <= 0 || (strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302") && 1925 if (len <= 0 || (strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302")) &&
1926 strncmp(buf, "HTTP/1.1 302", strlen("HTTP/1.1 302"))))) { 1926 strncmp(buf, "HTTP/1.1 302", strlen("HTTP/1.1 302")))) {
1927 gaim_connection_error(gc, _("Unable to read")); 1927 gaim_connection_error(gc, _("Unable to read"));
1928 return; 1928 return;
1929 } 1929 }
1930 1930
1931 s = g_string_sized_new(len); 1931 s = g_string_sized_new(len);

mercurial