Mercurial > pidgin.yaz
diff src/protocols/simple/simple.c @ 12751:038f92bd20b6
[gaim-migrate @ 15098]
Checking for -1 from recv.
committer: Tailor Script <tailor@pidgin.im>
| author | Thomas Butter <tbutter> |
|---|---|
| date | Sat, 07 Jan 2006 08:16:44 +0000 |
| parents | 1deb504f069a |
| children | ddae10386677 |
line wrap: on
line diff
--- a/src/protocols/simple/simple.c Sat Jan 07 07:50:31 2006 +0000 +++ b/src/protocols/simple/simple.c Sat Jan 07 08:16:44 2006 +0000 @@ -1112,7 +1112,7 @@ time_t currtime; static char buffer[65536]; - if((len = recv(source, buffer, 65536, 0))) { + if((len = recv(source, buffer, 65536, 0)) > 0) { buffer[len] = '\0'; gaim_debug_info("simple","\n\nreceived - %s\n######\n%s\n#######\n\n",ctime(&currtime), buffer); msg = sipmsg_parse_msg(buffer);
