]> git.armaanb.net Git - dwmblocks.git/blobdiff - dwmblocks.c
Update dwmblocks.c
[dwmblocks.git] / dwmblocks.c
index 63d1547ba050f0b53f988124cd88157e7c5ba970..2ce251e6b2a3dc332126a70c3487079976aff2e0 100644 (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();