From 9f2bafd75a4037036e7959ad9f06b925eb43d77e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 15 Dec 1999 05:33:07 +0000 Subject: does not overflow --- usr.bin/at/at.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/at') 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); /* -- cgit v1.2.3