Another unctrl() %s fix.

This commit is contained in:
simonb 1999-12-07 03:18:52 +00:00
parent 8733616839
commit 21e2089173

View File

@ -1,4 +1,4 @@
/* $NetBSD: setterm.c,v 1.12 1999/06/28 13:32:43 simonb Exp $ */ /* $NetBSD: setterm.c,v 1.13 1999/12/07 03:18:52 simonb Exp $ */
/* /*
* Copyright (c) 1981, 1993, 1994 * Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)setterm.c 8.8 (Berkeley) 10/25/94"; static char sccsid[] = "@(#)setterm.c 8.8 (Berkeley) 10/25/94";
#else #else
__RCSID("$NetBSD: setterm.c,v 1.12 1999/06/28 13:32:43 simonb Exp $"); __RCSID("$NetBSD: setterm.c,v 1.13 1999/12/07 03:18:52 simonb Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -208,9 +208,7 @@ zap()
__CTRACE("%2.2s = %s", namp, *sp[-1] == NULL ? "NULL\n" : "\""); __CTRACE("%2.2s = %s", namp, *sp[-1] == NULL ? "NULL\n" : "\"");
if (*sp[-1] != NULL) { if (*sp[-1] != NULL) {
for (cp = *sp[-1]; *cp; cp++) for (cp = *sp[-1]; *cp; cp++)
{ __CTRACE("%s", unctrl(*cp));
__CTRACE("%c", unctrl(*cp));
}
__CTRACE("\"\n"); __CTRACE("\"\n");
} }
#endif #endif