Blob Blame History Raw
--- cbrpager-0.9.17/src/global.c.debug	2008-05-24 05:46:57.000000000 +0900
+++ cbrpager-0.9.17/src/global.c	2008-05-26 04:11:08.000000000 +0900
@@ -324,7 +324,7 @@
   esc[idx] = '\0';
 
   printf(_("Requesting page %d/%d (%s)\n"), nr+1, 
-		g_list_length(pagelist), esc);
+		g_list_length(pagelist), p);
 
   /* The following patch was received from Mamoru Tasaka, 2008/05/22
      to solve potential security problems with the system() call */
@@ -354,9 +354,10 @@
 			pref.lastbook, p, (char *)NULL);
           return; /* should not reach here */
         case ZIP_FILE:
+          /* for zip file, esc must be passed instead of p */
           execlp("unzip",
 			"unzip", "-p", "-C",
-			pref.lastbook, p, (char *)NULL);
+			pref.lastbook, esc, (char *)NULL);
           return; /* should not reach here */
       }
       return; /* should not reach here */