You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
714 B
13 lines
714 B
15 years ago
|
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 );
|
||
|
}
|
||
|
|