Browse Source

Merge pull request #29 from keikari/patch-2

Fix, delimLen caused weird behaviour
master
torrinfail 5 years ago
committed by GitHub
parent
commit
3d308cafb0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      dwmblocks.c

+ 2
- 1
dwmblocks.c 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';
delimLen = MIN(delimLen, strlen(delim));
delim[delimLen++] = '\0';
signal(SIGTERM, termhandler);
signal(SIGINT, termhandler);
statusloop();


Loading…
Cancel
Save