This commit is contained in:
Radovan Kofira 2020-11-05 20:15:52 +01:00
parent 23ed4c05da
commit faa298fa9e

View File

@ -20,8 +20,8 @@ struct car* add_car(struct car* first,const char* target) {
}
while(this->next!=NULL){
this=this->next;
this->next = newcar;
}
this->next = newcar;
strcpy(newcar->value, target);
return first;
}