This commit is contained in:
Damián Korpesio 2021-11-25 11:06:41 +01:00
parent 138fb93dea
commit af8e949818

View File

@ -68,7 +68,7 @@ struct tree* read_tree(){
int get_input(char *string){
char* r = fgets(string,SIZE,stdin);
if(r==NULL){
return -1;//EOF
return -1;
}
string[strlen(string)-1]='\0';
return 1;