=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/check.c,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -c -r1.5.2.1 -r1.5.2.2 *** src/usr.bin/sudo/Attic/check.c 2002/01/18 17:20:22 1.5.2.1 --- src/usr.bin/sudo/Attic/check.c 2002/04/25 19:20:06 1.5.2.2 *************** *** 196,204 **** if (subst) { new_prompt = (char *) emalloc(len + 1); ! for (p = old_prompt, np = new_prompt; *p; p++) { if (lastchar == '%' && (*p == 'h' || *p == 'u' || *p == '%')) { ! /* substiture user/host name */ if (*p == 'h') { np--; strcpy(np, user_shost); --- 196,204 ---- if (subst) { new_prompt = (char *) emalloc(len + 1); ! for (p = old_prompt, np = new_prompt, lastchar = '\0'; *p; p++) { if (lastchar == '%' && (*p == 'h' || *p == 'u' || *p == '%')) { ! /* substitute user/host name */ if (*p == 'h') { np--; strcpy(np, user_shost);