diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/stand/boot/vars.c | 4 |
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++; |