From: planet36 Date: Tue, 13 Apr 2021 16:43:18 +0000 (-0400) Subject: Make LEN macro consistent with other suckless repos X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=c432c981df97f786c683435a4a06bd58fc9a7b18;p=suckless%2Fslstatus.git Make LEN macro consistent with other suckless repos Signed-off-by: drkhsh --- diff --git a/util.h b/util.h index 7f1f26c..cf4b027 100644 --- a/util.h +++ b/util.h @@ -3,7 +3,7 @@ extern char buf[1024]; -#define LEN(x) (sizeof (x) / sizeof *(x)) +#define LEN(x) (sizeof(x) / sizeof((x)[0])) extern char *argv0;