summaryrefslogtreecommitdiffstats
path: root/swaybg
diff options
context:
space:
mode:
authorLibravatar Christoph Gysin <christoph.gysin@gmail.com>2015-11-25 16:53:18 +0200
committerLibravatar Christoph Gysin <christoph.gysin@gmail.com>2015-11-25 21:00:23 +0200
commit504ac84cbcd52d3052b980f576a1bceed3ebc69c (patch)
tree762b441e21caeac2650bb19ab4b43a1ec1c7a55c /swaybg
parentswaybg: make argv const (diff)
downloadsway-504ac84cbcd52d3052b980f576a1bceed3ebc69c.tar.gz
sway-504ac84cbcd52d3052b980f576a1bceed3ebc69c.tar.zst
sway-504ac84cbcd52d3052b980f576a1bceed3ebc69c.zip
swaybg: check for exact number of arguments
Diffstat (limited to 'swaybg')
-rw-r--r--swaybg/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybg/main.c b/swaybg/main.c
index e6510800..cb9cc42b 100644
--- a/swaybg/main.c
+++ b/swaybg/main.c
@@ -28,7 +28,7 @@ int main(int argc, const char **argv) {
28 surfaces = create_list(); 28 surfaces = create_list();
29 registry = registry_poll(); 29 registry = registry_poll();
30 30
31 if (argc < 4) { 31 if (argc != 4) {
32 sway_abort("Do not run this program manually. See man 5 sway and look for output options."); 32 sway_abort("Do not run this program manually. See man 5 sway and look for output options.");
33 } 33 }
34 34