Expand the max name_num_item list size.
authorWayne Davison <wayne@opencoder.net>
Tue, 29 Sep 2020 19:57:32 +0000 (12:57 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 29 Sep 2020 19:57:32 +0000 (12:57 -0700)
rsync.h

diff --git a/rsync.h b/rsync.h
index 68dfba51a04f4835fe369d77a9323ecf238172f7..9d5c80080175f7216e93b2c165c5bf08d4d7ad4c 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -1164,7 +1164,7 @@ struct name_num_obj {
        uchar *saw;
        int saw_len;
        int negotiated_num;
-       struct name_num_item list[8]; /* A big-enough len (we'll get a compile error if it is ever too small) */
+       struct name_num_item list[10]; /* we'll get a compile error/warning if this is ever too small */
 };
 
 #ifndef __cplusplus