summaryrefslogtreecommitdiff
path: root/usr.bin/at
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-15 05:33:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-15 05:33:07 +0000
commit9f2bafd75a4037036e7959ad9f06b925eb43d77e (patch)
treec861b16d58a7301309317e21cb6fdb03d85aba32 /usr.bin/at
parent0d8d81d8f58d6f5eae36373c100a2562a3d9c879 (diff)
does not overflow
Diffstat (limited to 'usr.bin/at')
-rw-r--r--usr.bin/at/at.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index 5184caed741..1ddab472b20 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at.c,v 1.16 1998/07/09 20:40:58 mickey Exp $ */
+/* $OpenBSD: at.c,v 1.17 1999/12/15 05:33:06 deraadt Exp $ */
/* $NetBSD: at.c,v 1.4 1995/03/25 18:13:31 glass Exp $ */
/*
@@ -74,7 +74,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */
/* File scope variables */
#ifndef lint
-static char rcsid[] = "$OpenBSD: at.c,v 1.16 1998/07/09 20:40:58 mickey Exp $";
+static char rcsid[] = "$OpenBSD: at.c,v 1.17 1999/12/15 05:33:06 deraadt Exp $";
#endif
char *no_export[] =
@@ -197,7 +197,7 @@ writefile(runtimer, queue)
sigaction(SIGINT, &act, NULL);
- (void)strcpy(atfile, _PATH_ATJOBS);
+ (void)strlcpy(atfile, _PATH_ATJOBS, sizeof atfile);
ppos = atfile + strlen(atfile);
/*