This commit is contained in:
Bohdan Kapliuk 2024-11-03 17:05:51 +02:00
parent 46c1d74183
commit 5472c7fa71

View File

@ -29,7 +29,7 @@ void destroy_station(struct station* station){
int select_track(struct station* station, const char* target){
unsigned long hash = 5381;
int c;
while (c = *str++)
while (c = *target++)
hash = ((hash << 5) + hash) + c;
return hash;