--- check.c.old Thu Apr 18 16:57:19 2002 +++ check.c Thu Apr 18 16:56:34 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') {