Ignore:
Timestamp:
Nov 19, 2007, 9:44:38 PM (15 years ago)
Author:
charles
Message:

fix the crash reported by pea_, Gimp, and John_Clay [ref: http://pastebin.ca/784834]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r3881 r3895  
    14141414    struct evbuffer * inbuf = EVBUFFER_INPUT ( evin );
    14151415    const size_t buflen = EVBUFFER_LENGTH( inbuf );
    1416     const size_t n = MIN( buflen, getDownloadMax( msgs ) );
     1416    const size_t downloadMax = getDownloadMax( msgs );
     1417    const size_t n = MIN( buflen, downloadMax );
    14171418
    14181419    if( !n )
Note: See TracChangeset for help on using the changeset viewer.