diff --git a/dwmblocks.c b/dwmblocks.c index d772cf1..cce1729 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -240,7 +240,7 @@ updatestatus() continue; skipdelimc: /* checking for the first byte has been done */ - c = current->cmdoutcur + 1; p = current->cmdoutprv + 1; + c = current->cmdoutcur + 1, p = current->cmdoutprv + 1; for (; *c != '\n' && *c != '\0'; c++, p++) /* contents of the current block just changed */ if (*c != *p) { @@ -282,12 +282,12 @@ update1: continue; } skipdelimu: - c = current->cmdoutcur; p = current->cmdoutprv; + c = current->cmdoutcur, p = current->cmdoutprv; update2: do { *(s++) = *c; *p = *c; - c++; p++; + c++, p++; } while (*c != '\n' && *c != '\0'); if (current->pathc && current->signal) *(s++) = current->signal;