Update dwmblocks.c

This commit is contained in:
keikari 2020-08-16 12:20:15 +03:00 committed by GitHub
parent 0bd4575574
commit 86d7ae90b7
Failed to generate hash of commit

View file

@ -178,7 +178,8 @@ int main(int argc, char** argv)
else if(!strcmp("-p",argv[i]))
writestatus = pstdout;
}
delim[MIN(delimLen++, strlen(delim))] = '\0';
delim = MIN(delimLen, strlen(delim));
delim[delimLen++] = '\0';
signal(SIGTERM, termhandler);
signal(SIGINT, termhandler);
statusloop();