From 9a3c6d2dbe0a002b3c9dc5921f20d83fec8ceed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Pla=C3=A7ais?= Date: Wed, 27 Jun 2018 15:40:44 +0200 Subject: [PATCH] Check if command input has at least 2 arguments --- sway/commands/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/input.c b/sway/commands/input.c index 22a0bb7c..678c57c4 100644 --- a/sway/commands/input.c +++ b/sway/commands/input.c @@ -31,7 +31,7 @@ static struct cmd_handler input_handlers[] = { struct cmd_results *cmd_input(int argc, char **argv) { struct cmd_results *error = NULL; - if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 1))) { + if ((error = checkarg(argc, "input", EXPECTED_AT_LEAST, 2))) { return error; }