summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/afcclient.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/afcclient.c b/tools/afcclient.c
index 71a1c32..617e59a 100644
--- a/tools/afcclient.c
+++ b/tools/afcclient.c
@@ -913,6 +913,9 @@ static void handle_get(afc_client_t afc, int argc, char **argv)
dstpath[dst_len - 1] = '\0';
}
free(tmp);
+ } else {
+ printf("Error: Invalid number of arguments\n");
+ return;
}
// target is a directory, put file under this target