fixed some segmentation faults
This commit is contained in:
parent
3906f08d7a
commit
19b6899a39
1 changed files with 1 additions and 2 deletions
3
multif.c
3
multif.c
|
@ -21,8 +21,7 @@ int main(int argc, char *argv[])
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
ssize_t lineSize = 0;
|
ssize_t lineSize = 0;
|
||||||
|
|
||||||
char directory[4096];
|
char *directory = argv[1];
|
||||||
strcpy(directory, strdup(argv[1]));
|
|
||||||
strcat(directory, "/");
|
strcat(directory, "/");
|
||||||
|
|
||||||
//lineSize = getline(&line, &len, stdin);
|
//lineSize = getline(&line, &len, stdin);
|
||||||
|
|
Loading…
Reference in a new issue