From fd4a72cda6f64822179325058247d821f1168e75 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Thu, 3 Dec 2020 15:24:04 +0100 Subject: [PATCH] telegrafista --- a5/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a5/program.c b/a5/program.c index 7feec24..106d327 100644 --- a/a5/program.c +++ b/a5/program.c @@ -65,7 +65,7 @@ void search(struct morsetree* root, char* decode){ printf("\n"); 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); this = root; }