This commit is contained in:
Oliver Schmidt 2015-12-02 18:24:44 +01:00
parent 27835eee2c
commit 48d1d74f1c

View file

@ -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) {