$NetBSD: patch-aa,v 1.3 2002/05/25 14:17:06 blymn Exp $ --- src/fe-text/tparm.c.orig Sat Feb 9 08:40:12 2002 +++ src/fe-text/tparm.c @@ -247,7 +247,7 @@ argcnt = 0; pos = 0; termcap = 1; - while (*sp != '\0') { + while ((sp != NULL) && (*sp != '\0')) { switch(*sp) { case '\\': if (scan_for) {