telegrafista

This commit is contained in:
Maryna Kravtsova 2020-12-03 15:24:04 +01:00
parent cfe2103158
commit fd4a72cda6

View File

@ -65,7 +65,7 @@ void search(struct morsetree* root, char* decode){
printf("\n"); printf("\n");
return; return;
}*/ }*/
if(decode[i] == ' ' || decode[i] == '\n' || decode[i] == '\0'){ if(decode[i+1] == ' ' || decode[i+1] == '\n' || decode[i+1] == '\0'){
printf("%c", this->letter); printf("%c", this->letter);
this = root; this = root;
} }