diff options
author | matteo <matteo@FreeBSD.org> | 2008-11-18 00:39:50 +0000 |
---|---|---|
committer | matteo <matteo@FreeBSD.org> | 2008-11-18 00:39:50 +0000 |
commit | 3c521d56fa0b5a2cce19e0b9abdbe676787c107e (patch) | |
tree | bc1d4f6d3bbb32f6a192cdee8a423c14f7b54ca0 /usr.sbin | |
parent | d4072625e6e5c3f6f051aaf2ddd4669c2075a265 (diff) | |
download | FreeBSD-src-3c521d56fa0b5a2cce19e0b9abdbe676787c107e.zip FreeBSD-src-3c521d56fa0b5a2cce19e0b9abdbe676787c107e.tar.gz |
Be more precise and use sizeof(tn)
Pointed out by: glewis@
MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/cron/crontab/crontab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c index 79d26e4..f7af626 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); |