From: Carl Worth Date: Tue, 17 Apr 2007 18:13:32 +0000 (-0700) Subject: Print newline on EOF X-Git-Url: https://git.cworth.org/git?p=mnemon;a=commitdiff_plain;h=698b08fa45715b2d24f311c041f3858decbd21d6;hp=c99ea4af83e849df05018d4e72121f8f73de8bd2 Print newline on EOF --- diff --git a/mnemon.c b/mnemon.c index 67b5889..1eebd20 100644 --- a/mnemon.c +++ b/mnemon.c @@ -637,8 +637,10 @@ mnemon_do_challenges (mnemon_t *mnemon) printf ("%s\n", item->challenge); response = readline ("> "); - if (response == NULL) + if (response == NULL) { + printf ("\n"); break; + } correct = (strcmp (response, item->response) == 0);