e702dc8242
dumps. It also fixes a logic error that was dropping certain connections randomly.
21 lines
557 B
Text
21 lines
557 B
Text
$NetBSD: patch-ab,v 1.3 2006/03/01 12:16:04 reinoud Exp $
|
|
|
|
--- src/peer.c.orig 2005-12-09 09:02:57.000000000 +0100
|
|
+++ src/peer.c
|
|
@@ -19,6 +19,7 @@
|
|
# include <arpa/inet.h>
|
|
# include <netdb.h>
|
|
# include <sys/socket.h>
|
|
+# include <limits.h>
|
|
# if HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
# endif
|
|
@@ -596,7 +597,7 @@ recv_peermsg( btContext *ctx, btPeer *pe
|
|
btDownload *dl = ctx->downloads[peer->download];
|
|
int32_t nbo_len;
|
|
int len;
|
|
- char msg[84];
|
|
+ char msg[128];
|
|
char *nmsg, *param;
|
|
int res = 0;
|
|
int err;
|