GIT 1.0.13
[gitweb.git] / ls-files.c
index 5e9ac712af069e773fd7dd562706384b45683753..74ec8c0aeeb52a3bed8a0ac9da8fb9ba5ef66187 100644 (file)
@@ -169,7 +169,7 @@ static int excluded_1(const char *pathname,
                        }
                        else {
                                /* match with FNM_PATHNAME:
-                                * exclude has base (baselen long) inplicitly
+                                * exclude has base (baselen long) implicitly
                                 * in front of it.
                                 */
                                int baselen = x->baselen;
@@ -208,7 +208,7 @@ static int excluded(const char *pathname)
 
 struct nond_on_fs {
        int len;
-       char name[0];
+       char name[FLEX_ARRAY]; /* more */
 };
 
 static struct nond_on_fs **dir;