diff options
Diffstat (limited to 'ignore.c')
-rw-r--r-- | ignore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ignore.c b/ignore.c index 8bff2ce..9640d0b 100644 --- a/ignore.c +++ b/ignore.c @@ -7,7 +7,6 @@ #include <string.h> #include "ignore.h" -#include "rf.h" static int total_size; @@ -19,13 +18,13 @@ struct ignores *init_ignores(char *path) { return NULL; } - char line[MAX_PATH_LENGTH]; + char line[MAXPATHLEN]; total_size = IGNORE_SIZE; struct ignores *ignores = (struct ignores *)calloc(sizeof(struct ignores), 1); ignores->list = (char **)calloc(sizeof(char *), IGNORE_SIZE); ignores->size = 0; - while (fgets(line, MAX_PATH_LENGTH, ignore) != NULL) { + while (fgets(line, MAXPATHLEN, ignore) != NULL) { /** isspace doesn't necessarily hold true for `\n` for anything * other than the 'C' locale on some platforms, so we have to do * an additional check for this |