$NetBSD$

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