Be more precise and use sizeof(tn)

Pointed out by: glewis@

MFC after:	3 days
This commit is contained in:
Matteo Riondato 2008-11-18 00:39:50 +00:00
parent d9e5bb5c20
commit 90f43da7ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185041

View File

@ -502,7 +502,7 @@ replace_cmd() {
}
(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+"))) {
warn("%s", tn);