Sfoglia il codice sorgente

Fix: tc_http strnstr compiler bug in linux

ruanshudong 2 anni fa
parent
commit
ee8df79bc7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 )