From: Charles Kerr Date: Sun, 2 Jan 2011 07:56:20 +0000 (+0000) Subject: (trunk libT) #3867 "memmem(3) in Solaris 11 doesn't work as expected" -- fixed. X-Git-Tag: 2.20b1~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36c8843ba5be2dc080797323e91b681a61822f0e;p=transmission (trunk libT) #3867 "memmem(3) in Solaris 11 doesn't work as expected" -- fixed. --- diff --git a/libtransmission/utils-test.c b/libtransmission/utils-test.c index 1d460f5b6..34bc1cfc9 100644 --- a/libtransmission/utils-test.c +++ b/libtransmission/utils-test.c @@ -293,9 +293,6 @@ test_memmem( void ) check( tr_memmem( haystack, sizeof haystack, haystack, sizeof haystack) == haystack ) check( tr_memmem( haystack, sizeof haystack, needle, sizeof needle) == haystack + 2 ) check( tr_memmem( needle, sizeof needle, haystack, sizeof haystack) == NULL ) - check( tr_memmem( haystack, sizeof haystack, "", 0) == haystack ) - check( tr_memmem( haystack, sizeof haystack, NULL, 0) == haystack ) - check( tr_memmem( haystack, 0, "", 0) == haystack ) return 0; }