From: Daniel A. <dat...@us...> - 2006-02-13 20:06:20
|
Update of /cvsroot/gaim/gaim/src/protocols/msn In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5820 Modified Files: httpconn.c Log Message: Richard Nelson noticed that this comparison was potentially problematic due to signedness issues. Index: httpconn.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/msn/httpconn.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -p -r1.14 -r1.15 --- httpconn.c 13 Feb 2006 04:27:52 -0000 1.14 +++ httpconn.c 13 Feb 2006 20:06:09 -0000 1.15 @@ -162,7 +162,7 @@ write_raw(MsnHttpConn *httpconn, const c msn_servconn_got_error(httpconn->servconn, MSN_SERVCONN_ERROR_WRITE); return -1; - } else if (res < data_len) { + } else if (res < 0 || res < data_len) { if (res < 0) res = 0; if (httpconn->tx_handler == -1) |