=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/pch.c,v retrieving revision 1.32 retrieving revision 1.33 diff -c -r1.32 -r1.33 *** src/usr.bin/patch/pch.c 2003/10/31 20:20:45 1.32 --- src/usr.bin/patch/pch.c 2004/01/28 08:31:07 1.33 *************** *** 1,4 **** ! /* $OpenBSD: pch.c,v 1.32 2003/10/31 20:20:45 millert Exp $ */ /* * patch - a program to apply diffs to original files --- 1,4 ---- ! /* $OpenBSD: pch.c,v 1.33 2004/01/28 08:31:07 otto Exp $ */ /* * patch - a program to apply diffs to original files *************** *** 27,33 **** */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: pch.c,v 1.32 2003/10/31 20:20:45 millert Exp $"; #endif /* not lint */ #include --- 27,33 ---- */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: pch.c,v 1.33 2004/01/28 08:31:07 otto Exp $"; #endif /* not lint */ #include *************** *** 228,239 **** filearg[0] = fetchname(buf, &exists, 0); } if (!exists) { - free(filearg[0]); ask("No file found--skip this patch? [n] "); if (*buf != 'y') continue; if (verbose) say("Skipping patch...\n"); filearg[0] = fetchname(bestguess, &exists, 0); skip_rest_of_patch = true; return true; --- 228,239 ---- filearg[0] = fetchname(buf, &exists, 0); } if (!exists) { ask("No file found--skip this patch? [n] "); if (*buf != 'y') continue; if (verbose) say("Skipping patch...\n"); + free(filearg[0]); filearg[0] = fetchname(bestguess, &exists, 0); skip_rest_of_patch = true; return true;