sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-ipc-v1.5.6-to-v1.5.7.diff (646B)


      1 From 78faf6fdd0ab3664ea9fc2cdeb61558ebe5db2ef Mon Sep 17 00:00:00 2001
      2 From: mihirlad55 <mihirlad55@gmail.com>
      3 Date: Fri, 6 Nov 2020 17:13:42 +0000
      4 Subject: [PATCH] Update from v1.5.6 to v1.5.7
      5 
      6 * Fix segfault when running dwm-msg with no arguments
      7 ---
      8  dwm-msg.c | 2 +-
      9  1 file changed, 1 insertion(+), 1 deletion(-)
     10 
     11 diff --git a/dwm-msg.c b/dwm-msg.c
     12 index 0071781..1971d32 100644
     13 --- a/dwm-msg.c
     14 +++ b/dwm-msg.c
     15 @@ -499,7 +499,7 @@ main(int argc, char *argv[])
     16    }
     17  
     18    int i = 1;
     19 -  if (strcmp(argv[i], "--ignore-reply") == 0) {
     20 +  if (i < argc && strcmp(argv[i], "--ignore-reply") == 0) {
     21      ignore_reply = 1;
     22      i++;
     23    }
     24 -- 
     25 2.29.2
     26