Ignore:
Timestamp:
Oct 24, 2010, 5:52:38 AM (11 years ago)
Author:
charles
Message:

(trunk) #3663 "clang warnings in 2.11" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r11345 r11350  
    431431    char *        out;
    432432
    433     if( bufsize < len )
    434     {
    435         bufsize = len * 2;
     433    if( !buf || ( bufsize < len ) )
     434    {
     435        bufsize = len * 2 + 1;
    436436        buf = tr_renew( char, buf, bufsize );
    437437    }
Note: See TracChangeset for help on using the changeset viewer.