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