Small fix
delimLen didn't count in null-terminator. On line 62 the null terminator character doesn't get copied.
This commit is contained in:
parent
941f415b38
commit
0bd4575574
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ 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))] = '\0';
|
||||
signal(SIGTERM, termhandler);
|
||||
signal(SIGINT, termhandler);
|
||||
statusloop();
|
||||
|
|
Reference in a new issue