Changeset 3430


Ignore:
Timestamp:
Oct 16, 2007, 2:19:40 AM (14 years ago)
Author:
charles
Message:

maybe fix crash reported by Lacrocivious in http://pastebin.ca/738142

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fastresume.c

    r3426 r3430  
    190190
    191191    fastResumeFileName( path, sizeof path, tor, 1 );
    192     file = fopen( path, "wb" );
     192    file = fopen( path, "wb+" );
    193193    if( NULL == file ) {
    194194        tr_err( "Couldn't open '%s' for writing", path );
  • trunk/libtransmission/metainfo.c

    r3426 r3430  
    622622
    623623    savedname( path, sizeof path, hash, tag );
    624     file = fopen( path, "wb" );
     624    file = fopen( path, "wb+" );
    625625    if( !file )
    626626    {
Note: See TracChangeset for help on using the changeset viewer.