(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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user