Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschmidt committed Dec 2, 2015
1 parent 27835ee commit 48d1d74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/wget/wget.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,15 @@ 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) {
strcpy(name, contiki_argv[2]);
puts(name);
} else {
fgets(name, sizeof(name), stdin);
name[strlen(name) - 1] = 0;
}
file = cfs_open(name, CFS_WRITE);
if(file == -1) {
Expand Down

0 comments on commit 48d1d74

Please sign in to comment.