소스 검색

plugins/check_dns.c - index to strchr

Posix depricated index() and strchr() is standard C function.
Spenser Reinhardt 11 년 전
부모
커밋
59ed74c53b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins/check_dns.c

+ 1 - 1
plugins/check_dns.c

@@ -151,7 +151,7 @@ main (int argc, char **argv)
     /* bug ID: 2946553 - Older versions of bind will use all available dns
     + servers, we have to match the one specified */
     if (strlen(dns_server) > 0 && strstr(chld_out.line[i], "Server:")) {
-        temp_buffer = index(chld_out.line[i], ':');
+        temp_buffer = strchr(chld_out.line[i], ':');
         temp_buffer++;
 
 	/* Strip leading tabs */