Fix off by one in the display of var trees.

This commit is contained in:
christos 2002-02-11 18:54:30 +00:00
parent 454d67ac8c
commit 4398551708

View File

@ -1,4 +1,4 @@
/* $NetBSD: show.c,v 1.18 1999/10/08 21:10:44 pk Exp $ */ /* $NetBSD: show.c,v 1.19 2002/02/11 18:54:30 christos Exp $ */
/*- /*-
* Copyright (c) 1991, 1993 * Copyright (c) 1991, 1993
@ -41,7 +41,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)show.c 8.3 (Berkeley) 5/4/95"; static char sccsid[] = "@(#)show.c 8.3 (Berkeley) 5/4/95";
#else #else
__RCSID("$NetBSD: show.c,v 1.18 1999/10/08 21:10:44 pk Exp $"); __RCSID("$NetBSD: show.c,v 1.19 2002/02/11 18:54:30 christos Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -201,8 +201,8 @@ sharg(arg, fp)
if (subtype == VSLENGTH) if (subtype == VSLENGTH)
putc('#', fp); putc('#', fp);
while (*p != '=') while (*++p != '=')
putc(*p++, fp); putc(*p, fp);
if (subtype & VSNUL) if (subtype & VSNUL)
putc(':', fp); putc(':', fp);