Changeset 1130


Ignore:
Timestamp:
Nov 24, 2006, 8:32:14 PM (15 years ago)
Author:
titer
Message:

Avoid hashString confusions

Location:
branches/scrape/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/scrape/libtransmission/internal.h

    r1016 r1130  
    159159
    160160    /* An escaped string used to include the hash in HTTP queries */
    161     char              hashString[3*SHA_DIGEST_LENGTH+1];
     161    char              escapedHashString[3*SHA_DIGEST_LENGTH+1];
    162162
    163163    char              scrape[MAX_PATH_LENGTH];
  • branches/scrape/libtransmission/tracker.c

    r1129 r1130  
    219219        tc->httpScrape = tr_httpClient( TR_HTTP_GET, inf->trackerAddress, inf->trackerPort,
    220220                            "%s%sinfo_hash=%s", tor->scrape, strchr( tor->scrape, '?' ) ?
    221                             "&" : "?", tor->hashString );
     221                            "&" : "?", tor->escapedHashString );
    222222        tr_inf( "Scrape: sent http request to %s:%d",
    223223                    inf->trackerAddress, inf->trackerPort );
     
    368368                          "key=%s"
    369369                          "%s",
    370                           inf->trackerAnnounce, start, tor->hashString, tc->id,
     370                          inf->trackerAnnounce, start, tor->escapedHashString, tc->id,
    371371                          tc->bindPort, up, down, left, numwant, tor->key, event );
    372372}
  • branches/scrape/libtransmission/transmission.c

    r1127 r1130  
    323323    for( i = 0; i < SHA_DIGEST_LENGTH; i++ )
    324324    {
    325         sprintf( &tor->hashString[3*i], "%%%02x", inf->hash[i] );
     325        sprintf( &tor->escapedHashString[3*i], "%%%02x", inf->hash[i] );
    326326    }
    327327
Note: See TracChangeset for help on using the changeset viewer.