mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-08 16:26:23 -04:00
check_dns: Use strchr instead of index
This commit is contained in:
parent
d0da78ced1
commit
b7ce241ba6
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,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 (strstr (chld_out.line[i], "Server:") && strlen(dns_server) > 0) {
|
||||
temp_buffer = index (chld_out.line[i], ':');
|
||||
temp_buffer = strchr (chld_out.line[i], ':');
|
||||
temp_buffer++;
|
||||
|
||||
/* Strip leading tabs */
|
||||
|
|
|
|||
Loading…
Reference in a new issue