Files
pkgsrc-ng/net/btget/patches/patch-ab
2013-09-26 17:14:40 +02:00

22 lines
557 B
Plaintext

$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;