From 90f43da7ad6dd2e84f5ace6a443f89f641443cc8 Mon Sep 17 00:00:00 2001 From: Matteo Riondato Date: Tue, 18 Nov 2008 00:39:50 +0000 Subject: [PATCH] Be more precise and use sizeof(tn) Pointed out by: glewis@ MFC after: 3 days --- usr.sbin/cron/crontab/crontab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c index 79d26e43286b..f7af62691169 100644 --- a/usr.sbin/cron/crontab/crontab.c +++ b/usr.sbin/cron/crontab/crontab.c @@ -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);