From 4ca7515785ddfa1e1d74408169fbd13cb7985ee3 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 4 Oct 2000 06:08:54 +0000 Subject: [PATCH] (cmdscanner): print a newline upon EOF git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9095 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appl/ftp/ftp/main.c b/appl/ftp/ftp/main.c index fbeddcb75..b423f461a 100644 --- a/appl/ftp/ftp/main.c +++ b/appl/ftp/ftp/main.c @@ -250,8 +250,10 @@ cmdscanner(int top) if (fromatty) { char *p; p = readline("ftp> "); - if(p == NULL) + if(p == NULL) { + printf("\n"); quit(0, 0); + } strlcpy(line, p, sizeof(line)); add_history(p); free(p);