logo       
Google Custom Search
    AddThis Social Bookmark Button

wget 1.10: msg#00080

Subject: wget 1.10

Pointer ajustment missing in ftp-ls.c

strtok() replace SP by \0 in file size string; thus for
'large' size string strtoll() start on '\0'.

/* Back up to the beginning of the previous token
                     and parse it with str_to_wgint.  */
                  char *t = tok - 2;
                  while (t > line && ISDIGIT (*t))
                    --t;
                  if (t == line)
                    {
                      /* Something has gone wrong during parsing. */
                      error = 1;
                      break;
                    }
t++; /* GV point on first digit (skip strtok \0) */ <<<<==========

Hope this help.






Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>