diff options
-rw-r--r-- | minifind.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ char *minifind(char *dir, char *search, struct findNode *list) while (n--) { d = malloc(sizeof(char) * (strlen(dir) \ - + strlen(namelist[n]->d_name)+1)); + + strlen(namelist[n]->d_name)+2)); sprintf(d, "%s/%s", dir, namelist[n]->d_name); if (strstr(namelist[n]->d_name, search)) insert_node(list->result, d); |