Date: Tue, 18 Nov 2008 00:39:50 +0000 (UTC) From: Matteo Riondato <matteo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185041 - head/usr.sbin/cron/crontab Message-ID: <200811180039.mAI0doH2062854@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: matteo Date: Tue Nov 18 00:39:50 2008 New Revision: 185041 URL: http://svn.freebsd.org/changeset/base/185041 Log: Be more precise and use sizeof(tn) Pointed out by: glewis@ MFC after: 3 days Modified: head/usr.sbin/cron/crontab/crontab.c Modified: head/usr.sbin/cron/crontab/crontab.c ============================================================================== --- head/usr.sbin/cron/crontab/crontab.c Tue Nov 18 00:12:15 2008 (r185040) +++ head/usr.sbin/cron/crontab/crontab.c Tue Nov 18 00:39:50 2008 (r185041) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811180039.mAI0doH2062854>