HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: [Bug] Command line fails to display questions
Author: Xavier Roche
Date: 12/07/2008 10:50
 
> I looked what was happening, and I found out that
> httrack in fact did ask me something, and was
> waiting for a response.

Darn! Bug spotted and fixed (diff follows) ; should be merged in the next
subrelease. Thanks for the investigation!

diff -rudb src.orig/htswizard.c src/htswizard.c
--- src.orig/htswizard.c        2008-09-28 19:07:09.000000000 +0200
+++ src/htswizard.c     2008-12-07 10:42:45.000000000 +0100
@@ -697,16 +697,16 @@
         HT_PRINT("4 Get only this page/link"LF);
         HT_PRINT("5 Mirror this link (useful)"LF);
         HT_PRINT("6 Mirror links located in the same domain"LF);
-        HT_PRINT(LF);
+        //HT_PRINT(LF);
         HTS_REQUEST_END;
-          {
-            char BIGSTK tempo[HTS_URLMAXSIZE*2];
-            tempo[0]='\0';
-            strcatbuff(tempo,adr);
-            strcatbuff(tempo,"/");
-            strcatbuff(tempo,fil);
-            s = RUN_CALLBACK1(opt, query3, tempo);
-          }
+          //{
+            //char BIGSTK tempo[HTS_URLMAXSIZE*2];
+            //tempo[0]='\0';
+            //strcatbuff(tempo,adr);
+            //strcatbuff(tempo,"/");
+            //strcatbuff(tempo,fil);
+            s = RUN_CALLBACK1(opt, query3, opt->state.HTbuff);
+          //}
           if (strnotempty(s)==0)  // entrée
             n=0;
           else if (isdigit((unsigned char)*s))
diff -rudb src.orig/httrack.c src/httrack.c
--- src.orig/httrack.c  2008-09-28 19:07:09.000000000 +0200
+++ src/httrack.c       2008-12-07 10:44:17.000000000 +0100
@@ -568,20 +568,25 @@
 }
 static const char* __cdecl htsshow_query(t_hts_callbackarg *carg, httrackp
*opt, const char* question) {
   static char s[12]=""; /* ok */
-  printf("%s\nPress <Y><Enter> to confirm, <N><Enter> to abort\n",question);
-  io_flush; linput(stdin,s,4);
+  printf("%s\nPress <Y><Enter> to confirm, <N><Enter> to abort\n",
question);
+  io_flush;
+  linput(stdin,s,4);
   return s;
 }
 static const char* __cdecl htsshow_query2(t_hts_callbackarg *carg, httrackp
*opt, const char* question) {
   static char s[12]=""; /* ok */
-  printf("%s\nPress <Y><Enter> to confirm, <N><Enter> to abort\n",question);
-  io_flush; linput(stdin,s,4);
+  printf("%s\nPress <Y><Enter> to confirm, <N><Enter> to abort\n",
question);
+  io_flush;
+  linput(stdin,s,4);
   return s;
 }
 static const char* __cdecl htsshow_query3(t_hts_callbackarg *carg, httrackp
*opt, const char* question) {
   static char line[256]; /* ok */
+  printf("%s\n", question);
   do {
-    io_flush; linput(stdin,line,206);
+    printf(">> \n", question);
+    io_flush;
+    linput(stdin, line, 200);
   } while(!strnotempty(line));
   printf("ok..\n");
   return line;
 
Reply Create subthread


All articles

Subject Author Date
[Bug] Command line fails to display questions

12/05/2008 14:50
Re: [Bug] Command line fails to display questions

12/07/2008 10:50
Re: [Bug] Command line fails to display questions

12/08/2008 11:58




5

Created with FORUM 2.0.11