Explorar o código

Fix: tc_http strnstr compiler bug in linux

ruanshudong %!s(int64=2) %!d(string=hai) anos
pai
achega
ee8df79bc7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      util/src/tc_http.cpp

+ 1 - 1
util/src/tc_http.cpp

@@ -1963,7 +1963,7 @@ namespace tars
 			const char * pCur = header + 4;
 			while (true)
 			{
-				p  = strnstr(pCur, "\r\n", remain_len);
+				p  = TC_Port::strnstr(pCur, "\r\n", remain_len);
 
 //	        p = strstr(pCur , "\r\n");
 				if ( p == NULL )