summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/entry.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-21 21:08:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-21 21:08:58 +0000
commit7133e06458c0d6978cce955c24ee9f9886a9d164 (patch)
tree0633669661cc6b52ee86acf9af6cb3b76d69da8e /usr.sbin/cron/entry.c
parentcbf4abccc3758a3fe85b580f8e56307e287542c8 (diff)
snprintf sprinkles; solar@false.com & I
Diffstat (limited to 'usr.sbin/cron/entry.c')
-rw-r--r--usr.sbin/cron/entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c
index a4283732f6d..93a74d58e95 100644
--- a/usr.sbin/cron/entry.c
+++ b/usr.sbin/cron/entry.c
@@ -16,7 +16,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char rcsid[] = "$Id: entry.c,v 1.6 2000/03/18 21:23:04 deraadt Exp $";
+static char rcsid[] = "$Id: entry.c,v 1.7 2000/08/21 21:08:56 deraadt Exp $";
#endif
/* vix 26jan87 [RCS'd; rest of log is in RCS file]
@@ -287,7 +287,7 @@ load_entry(file, error_func, pw, envp)
}
}
if (!env_get("PATH", e->envp)) {
- sprintf(envstr, "PATH=%s", _PATH_DEFPATH);
+ snprintf(envstr, sizeof envstr, "PATH=%s", _PATH_DEFPATH);
if ((tenvp = env_set(e->envp, envstr))) {
e->envp = tenvp;
} else {