--- check.c.orig Thu Apr 25 10:55:12 2002 +++ check.c Thu Apr 25 10:56:17 2002 @@ -196,7 +196,7 @@ if (subst) { new_prompt = (char *) emalloc(len + 1); - for (p = old_prompt, np = new_prompt; *p; p++) { + for (p = old_prompt, np = new_prompt, lastchar = '\0'; *p; p++) { if (lastchar == '%' && (*p == 'h' || *p == 'u' || *p == '%')) { /* substiture user/host name */ if (*p == 'h') {