Merge pull request #29 from keikari/patch-2
Fix, delimLen caused weird behaviour
This commit is contained in:
commit
3d308cafb0
|
@ -178,7 +178,8 @@ int main(int argc, char** argv)
|
||||||
else if (!strcmp("-p",argv[i]))
|
else if (!strcmp("-p",argv[i]))
|
||||||
writestatus = pstdout;
|
writestatus = pstdout;
|
||||||
}
|
}
|
||||||
delim[MIN(delimLen, strlen(delim))] = '\0';
|
delimLen = MIN(delimLen, strlen(delim));
|
||||||
|
delim[delimLen++] = '\0';
|
||||||
signal(SIGTERM, termhandler);
|
signal(SIGTERM, termhandler);
|
||||||
signal(SIGINT, termhandler);
|
signal(SIGINT, termhandler);
|
||||||
statusloop();
|
statusloop();
|
||||||
|
|
Loading…
Reference in New Issue