replace: Use the same size as d_name member of struct dirent
authorAndreas Schneider <asn@samba.org>
Thu, 1 Jun 2017 12:16:56 +0000 (14:16 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 1 Jun 2017 17:35:10 +0000 (19:35 +0200)
This fixes an error with GCC 7.1

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/replace/test/os2_delete.c

index 0816f611516d654875c791c6ff5b4329df7a10c6..4b99ccf910344159067791f9e47a60038b04ca41 100644 (file)
@@ -63,7 +63,7 @@ static int os2_delete(DIR *d)
        off_t offsets[READDIR_SIZE];
        int i, j;
        struct dirent *de;
-       char names[READDIR_SIZE][30];
+       char names[READDIR_SIZE][256];
 
        /* scan, remembering offsets */
        for (i=0, de=readdir(d);