Merge pull request #1410 from oliverschmidt/master

Fixed dacef46b03
This commit is contained in:
Oliver Schmidt 2015-12-02 19:15:17 +01:00
commit 9d4553ee08

View file

@ -146,7 +146,7 @@ app_quit(void)
if(file != -1) {
cfs_close(file);
}
puts("Press any key to continue...");
puts("Press <enter> to continue...");
getchar();
process_exit(&wget_process);
LOADER_UNLOAD();
@ -170,6 +170,7 @@ PROCESS_THREAD(wget_process, ev, data)
puts(url);
} else {
fgets(url, sizeof(url), stdin);
name[strlen(url) - 1] = 0;
}
fputs("Save as:", stdout);
if(contiki_argc > 2) {
@ -177,6 +178,7 @@ PROCESS_THREAD(wget_process, ev, data)
puts(name);
} else {
fgets(name, sizeof(name), stdin);
name[strlen(name) - 1] = 0;
}
file = cfs_open(name, CFS_WRITE);
if(file == -1) {