# HG changeset patch # User Luke Schierer # Date 1070299000 0 # Node ID d9caaddaa56d35ccf0853103e0bd651cdbbe5084 # Parent 9ca2cdcc6f997baabcdf2916601945541f3cd8c0 [gaim-migrate @ 8326] Tim Ringenbach (marv_sf) writes: " This fixes a crash on wingaim, and makes things more better. Simguy did most the work." committer: Tailor Script diff -r 9ca2cdcc6f99 -r d9caaddaa56d src/protocols/yahoo/yahoo_filexfer.c --- a/src/protocols/yahoo/yahoo_filexfer.c Mon Dec 01 17:03:00 2003 +0000 +++ b/src/protocols/yahoo/yahoo_filexfer.c Mon Dec 01 17:16:40 2003 +0000 @@ -250,7 +250,7 @@ size_t yahoo_xfer_read(char **buffer, GaimXfer *xfer) { gchar buf[1024]; - size_t len; + ssize_t len; gchar *start = NULL; gchar *length; gchar *end; @@ -262,9 +262,9 @@ len = read(xfer->fd, buf, sizeof(buf)); - if (len == 0) { + if (len <= 0) { if (xd->length && (xd->length == xd->bytes_in)) - gaim_xfer_end(xfer); + gaim_xfer_set_completed(xfer, TRUE); else gaim_xfer_cancel_remote(xfer); return 0;