summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbitblt <bitblt@openbsd.org>1996-09-25 02:06:27 +0000
committerbitblt <bitblt@openbsd.org>1996-09-25 02:06:27 +0000
commitd8ed82b3de14f0d563ac58d1cfc6c7a6cda78332 (patch)
treefff6972eb694181aa3e3930fa7e18398a239ab52
parentEnsure that termcap get's initializaed before window size. (diff)
downloadwireguard-openbsd-d8ed82b3de14f0d563ac58d1cfc6c7a6cda78332.tar.xz
wireguard-openbsd-d8ed82b3de14f0d563ac58d1cfc6c7a6cda78332.zip
Fixed buffer overflow.
-rw-r--r--usr.sbin/cron/env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/env.c b/usr.sbin/cron/env.c
index c9cd3a5e75c..0862ffd035e 100644
--- a/usr.sbin/cron/env.c
+++ b/usr.sbin/cron/env.c
@@ -16,7 +16,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char rcsid[] = "$Id: env.c,v 1.1.1.1 1995/10/18 08:47:30 deraadt Exp $";
+static char rcsid[] = "$Id: env.c,v 1.2 1996/09/25 02:06:27 bitblt Exp $";
#endif
@@ -115,7 +115,7 @@ load_env(envstr, f)
{
long filepos;
int fileline;
- char name[MAX_TEMPSTR], val[MAX_ENVSTR];
+ char name[MAX_ENVSTR], val[MAX_ENVSTR];
int fields;
filepos = ftell(f);