fixed some segmentation faults

This commit is contained in:
xfnw 2021-12-31 16:06:33 -05:00
parent 3906f08d7a
commit 19b6899a39

View file

@ -21,8 +21,7 @@ int main(int argc, char *argv[])
size_t len = 0;
ssize_t lineSize = 0;
char directory[4096];
strcpy(directory, strdup(argv[1]));
char *directory = argv[1];
strcat(directory, "/");
//lineSize = getline(&line, &len, stdin);