- Added patch to fix https://trac.transmissionbt.com/ticket/3539epel9
parent
64a6041bd2
commit
f2c8dd5186
@ -0,0 +1,12 @@
|
||||
diff -ur ../transmission-2.04.orig/libtransmission/torrent-magnet.c ./libtransmission/torrent-magnet.c
|
||||
--- ../transmission-2.04.orig/libtransmission/torrent-magnet.c 2010-08-07 09:04:35.000000000 +0530
|
||||
+++ ./libtransmission/torrent-magnet.c 2010-09-20 13:32:57.160346620 +0530
|
||||
@@ -116,7 +116,7 @@
|
||||
int infoLen;
|
||||
char * infoContents = tr_bencToStr( infoDict, TR_FMT_BENC, &infoLen );
|
||||
const uint8_t * i = (const uint8_t*) tr_memmem( (char*)fileContents, fileLen, infoContents, infoLen );
|
||||
- offset = i == NULL ? i - fileContents : 0;
|
||||
+ offset = i != NULL ? i - fileContents : 0;
|
||||
tr_free( infoContents );
|
||||
}
|
||||
|
Loading…
Reference in new issue