Be more precise and use sizeof(tn)
Pointed out by: glewis@ MFC after: 3 days
This commit is contained in:
parent
d9e5bb5c20
commit
90f43da7ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185041
@ -502,7 +502,7 @@ replace_cmd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(void) snprintf(n, sizeof(n), "tmp.%d", Pid);
|
(void) snprintf(n, sizeof(n), "tmp.%d", Pid);
|
||||||
(void) snprintf(tn, sizeof(n), CRON_TAB(n));
|
(void) snprintf(tn, sizeof(tn), CRON_TAB(n));
|
||||||
|
|
||||||
if (!(tmp = fopen(tn, "w+"))) {
|
if (!(tmp = fopen(tn, "w+"))) {
|
||||||
warn("%s", tn);
|
warn("%s", tn);
|
||||||
|
Loading…
Reference in New Issue
Block a user