commit | 9ccc52222c287b35e41625cc282fb882544676c6 | [log] [tgz] |
---|---|---|
author | Nikias Bassen <nikias@gmx.li> | Mon May 20 17:48:13 2024 +0200 |
committer | Nikias Bassen <nikias@gmx.li> | Mon May 20 17:48:13 2024 +0200 |
tree | 06347d7a92c7da75bbe155976fa6014434ff789b | |
parent | 80e13a37328521d9f696e60662c300b80e7b4106 [diff] |
tools/afcclient: Add missing argument count check for `get` command
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 @@ 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