diff options
author | Matteo Riondato <matteo@FreeBSD.org> | 2008-11-18 00:39:50 +0000 |
---|---|---|
committer | Matteo Riondato <matteo@FreeBSD.org> | 2008-11-18 00:39:50 +0000 |
commit | 90f43da7ad6dd2e84f5ace6a443f89f641443cc8 (patch) | |
tree | bc1d4f6d3bbb32f6a192cdee8a423c14f7b54ca0 /usr.sbin/cron/crontab | |
parent | d9e5bb5c209c763a6ca0d40e38d871f503908e89 (diff) | |
download | src-90f43da7ad6dd2e84f5ace6a443f89f641443cc8.tar.gz src-90f43da7ad6dd2e84f5ace6a443f89f641443cc8.zip |
Be more precise and use sizeof(tn)
Pointed out by: glewis@
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=185041
Diffstat (limited to 'usr.sbin/cron/crontab')
-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 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); |