From: hackbard <hackbard>
Date: Fri, 10 Jan 2003 15:28:48 +0000 (+0000)
Subject: MAX_SIZE 1400
X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4791259dd5f72141689d1dca2401b80661ea1405;p=my-code%2Fivac.git

MAX_SIZE 1400
---

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 <unistd.h>
 
+/* 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);
   }