From 6518005d01e1b9ba0b67e78d0fe2cb43725bbdee Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Tue, 14 Jul 2020 02:49:38 +0530 Subject: [PATCH] Changed order of input to strcmp --- dwmblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwmblocks.c b/dwmblocks.c index 611b565..7da3670 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -287,7 +287,7 @@ main(int argc, char *argv[]) { writepid(); if (argc > 2) - if (strcmp("-d", argv[1]) == 0) + if (strcmp(argv[1], "-d") == 0) delim = argv[2]; delimlength = strlen(delim) + 1; if (!(dpy = XOpenDisplay(NULL))) {