fixed argc bug
[my-code/ivac.git] / dgramrcv.c
index d8ec19e..d235b66 100644 (file)
@@ -33,7 +33,7 @@ int main(int argc, char *argv[]) {
   int receive_bytes, write_bytes;
   socklen_t target_addr_len;
 
-  if(argc!=3) {
+  if(argc!=2) {
     printf("usage: %s <port>\n",argv[0]);
     exit(1);
   }