summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
941f415)
delimLen didn't count in null-terminator.
On line 62 the null terminator character doesn't get copied.
else if(!strcmp("-p",argv[i]))
writestatus = pstdout;
}
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();
signal(SIGTERM, termhandler);
signal(SIGINT, termhandler);
statusloop();