diff options
Diffstat (limited to 'tools/afcclient.c')
-rw-r--r-- | tools/afcclient.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/afcclient.c b/tools/afcclient.c index 71a1c32..8f49831 100644 --- a/tools/afcclient.c +++ b/tools/afcclient.c @@ -37,6 +37,7 @@ #include <ctype.h> #include <unistd.h> #include <dirent.h> +#include <time.h> #ifdef WIN32 #include <windows.h> @@ -913,6 +914,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 |