This commit is contained in:
Your Name 2024-07-26 11:22:21 +03:00
parent c6e315c24c
commit 1925d32c40

View File

@ -380,7 +380,7 @@ static int ls_files(int argc, char **argv, const struct winsize w) {
if (S_ISDIR(sb.st_mode))
continue;
struct d_node **tmp = realloc(file, sizeof(struct d_node *) * (files + 2));
struct d_node **tmp = realloc(file, sizeof(struct d_node *) * (files + 1));
if (tmp == NULL) {
dfree(file, files);
argv[i] = NULL;