(cmdscanner): print a newline upon EOF

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9095 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-10-04 06:08:54 +00:00
parent 2a63cfe6b9
commit 4ca7515785

View File

@@ -250,8 +250,10 @@ cmdscanner(int top)
if (fromatty) { if (fromatty) {
char *p; char *p;
p = readline("ftp> "); p = readline("ftp> ");
if(p == NULL) if(p == NULL) {
printf("\n");
quit(0, 0); quit(0, 0);
}
strlcpy(line, p, sizeof(line)); strlcpy(line, p, sizeof(line));
add_history(p); add_history(p);
free(p); free(p);