Fixed dacef46b03
This commit is contained in:
parent
27835eee2c
commit
48d1d74f1c
|
@ -170,6 +170,7 @@ PROCESS_THREAD(wget_process, ev, data)
|
||||||
puts(url);
|
puts(url);
|
||||||
} else {
|
} else {
|
||||||
fgets(url, sizeof(url), stdin);
|
fgets(url, sizeof(url), stdin);
|
||||||
|
name[strlen(url) - 1] = 0;
|
||||||
}
|
}
|
||||||
fputs("Save as:", stdout);
|
fputs("Save as:", stdout);
|
||||||
if(contiki_argc > 2) {
|
if(contiki_argc > 2) {
|
||||||
|
@ -177,6 +178,7 @@ PROCESS_THREAD(wget_process, ev, data)
|
||||||
puts(name);
|
puts(name);
|
||||||
} else {
|
} else {
|
||||||
fgets(name, sizeof(name), stdin);
|
fgets(name, sizeof(name), stdin);
|
||||||
|
name[strlen(name) - 1] = 0;
|
||||||
}
|
}
|
||||||
file = cfs_open(name, CFS_WRITE);
|
file = cfs_open(name, CFS_WRITE);
|
||||||
if(file == -1) {
|
if(file == -1) {
|
||||||
|
|
Loading…
Reference in a new issue