From 504ac84cbcd52d3052b980f576a1bceed3ebc69c Mon Sep 17 00:00:00 2001 From: Christoph Gysin Date: Wed, 25 Nov 2015 16:53:18 +0200 Subject: [PATCH] swaybg: check for exact number of arguments --- swaybg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swaybg/main.c b/swaybg/main.c index e65108005..cb9cc42bc 100644 --- a/swaybg/main.c +++ b/swaybg/main.c @@ -28,7 +28,7 @@ int main(int argc, const char **argv) { surfaces = create_list(); registry = registry_poll(); - if (argc < 4) { + if (argc != 4) { sway_abort("Do not run this program manually. See man 5 sway and look for output options."); }