From 4791259dd5f72141689d1dca2401b80661ea1405 Mon Sep 17 00:00:00 2001 From: hackbard Date: Fri, 10 Jan 2003 15:28:48 +0000 Subject: [PATCH] MAX_SIZE 1400 --- receive.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/receive.c b/receive.c index 105a81c..9bd11f8 100644 --- a/receive.c +++ b/receive.c @@ -26,6 +26,9 @@ /* read, close */ #include +/* defines ... */ +#define MAX_SIZE 1400 + int main(int argc, char *argv[]) { int receive_fd; struct sockaddr_in target_addr; @@ -54,7 +57,7 @@ int main(int argc, char *argv[]) { receive_bytes=1; while(receive_bytes>0) { - unsigned char buf[1000]; + unsigned char buf[MAX_SIZE]; receive_bytes=recv(receive_fd,buf,sizeof(buf),0); write_bytes=write(1,buf,receive_bytes); } -- 2.39.2