1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 07:03:44 +00:00

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

This commit is contained in:
Charles Kerr 2007-10-16 02:19:40 +00:00
parent 30418e34b8
commit 0b04554772
2 changed files with 2 additions and 2 deletions

View file

@ -189,7 +189,7 @@ tr_fastResumeSave( const tr_torrent * tor )
uint64_t total;
fastResumeFileName( path, sizeof path, tor, 1 );
file = fopen( path, "wb" );
file = fopen( path, "wb+" );
if( NULL == file ) {
tr_err( "Couldn't open '%s' for writing", path );
return;

View file

@ -621,7 +621,7 @@ savetorrent( const char * hash, const char * tag,
FILE * file;
savedname( path, sizeof path, hash, tag );
file = fopen( path, "wb" );
file = fopen( path, "wb+" );
if( !file )
{
tr_err( "Could not open file (%s) (%s)", path, strerror( errno ) );