summaryrefslogtreecommitdiffstats
path: root/tools/afcclient.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-05-20 17:48:13 +0200
committerGravatar Nikias Bassen2024-05-20 17:48:13 +0200
commit9ccc52222c287b35e41625cc282fb882544676c6 (patch)
tree06347d7a92c7da75bbe155976fa6014434ff789b /tools/afcclient.c
parent80e13a37328521d9f696e60662c300b80e7b4106 (diff)
downloadlibimobiledevice-9ccc52222c287b35e41625cc282fb882544676c6.tar.gz
libimobiledevice-9ccc52222c287b35e41625cc282fb882544676c6.tar.bz2
tools/afcclient: Add missing argument count check for `get` command
Diffstat (limited to 'tools/afcclient.c')
-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)
913 dstpath[dst_len - 1] = '\0'; 913 dstpath[dst_len - 1] = '\0';
914 } 914 }
915 free(tmp); 915 free(tmp);
916 } else {
917 printf("Error: Invalid number of arguments\n");
918 return;
916 } 919 }
917 920
918 // target is a directory, put file under this target 921 // target is a directory, put file under this target