From 69e7b8a8202ae76065bf007ee0d4bd9b4e61546d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 20 Aug 2006 06:23:24 +0000 Subject: [PATCH] don't loop on a bad file name --- tools/pak/pak.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/pak/pak.c b/tools/pak/pak.c index c3b2306a7..3ed57fe3f 100644 --- a/tools/pak/pak.c +++ b/tools/pak/pak.c @@ -195,6 +195,7 @@ main (int argc, char **argv) pf = pack_find_file (pack, argv[optind]); if (!pf) { fprintf (stderr, "could not find %s\n", argv[optind]); + optind++; continue; } if (options.verbosity > 0)