summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-30 01:51:40 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-30 01:51:40 +0000
commitf1c489441fc472f2ee3992d259b0a4e02c1c509e (patch)
treed8e5d36feaf1b66a8ef8fa33a2347e2dd173ad03 /sys
parent31c0eeb280cce2aeef6c9105cbe1d40feba136a1 (diff)
fix variable comparision algorythm so variable being changed/added
which name is a substr of the name of another one would not corrupt the list.
Diffstat (limited to 'sys')
-rw-r--r--sys/stand/boot/vars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/stand/boot/vars.c b/sys/stand/boot/vars.c
index 644e27b11dc..0873f5a2cf7 100644
--- a/sys/stand/boot/vars.c
+++ b/sys/stand/boot/vars.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vars.c,v 1.1 1998/05/25 19:17:43 mickey Exp $ */
+/* $OpenBSD: vars.c,v 1.2 1998/05/30 01:51:39 mickey Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -226,7 +226,7 @@ Xenv()
for (p = environ; p && *p; p = q) {
l = strlen(cmd.argv[1]);
for (q = p; *q != '='; q++);
- l = max(l, q - p);
+ l = max(l, q - p) + 1;
for (q = p; *q != '\n'; q++);
if (*q)
q++;