This commit is contained in:
Jakub Adamski 2019-01-10 14:51:03 +01:00
parent 52327ed3c8
commit 8e90990779
1 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,7 @@ int cut(char **argv, char *command){
int main (){
int ile, i;
while (1){
char* argv[100];
char** argv;
char komenda[max], directory[max];
if (getcwd(directory, sizeof(directory)) == NULL){
perror("getcwd() error");
@ -58,7 +58,9 @@ int main (){
else
wait(NULL);
free(argv);
for(i=0; i<ile; i++)
free(argv[i]);
free(argv[i]);
}
return 0;
}