diff --git a/a5/program.c b/a5/program.c index 48cede5..06fd4c2 100644 --- a/a5/program.c +++ b/a5/program.c @@ -60,7 +60,8 @@ void search(struct morsetree* root, char* decode){ int i = 0; for(i == 0; i <= strlen(decode); i++){ if((i == strlen(decode) && decode[strlen(decode)-1] == ' ') || - (i == strlen(decode)-1 && decode[strlen(decode)-2] == '/')){ + (i == strlen(decode) && decode[strlen(decode)-1] == '/' + && decode[strlen(decode)-2] == ' ')){ printf("\n"); return; }