aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
authorGravatar Jan Wagner <waja@cyconet.org> 2014-07-30 23:29:28 +0200
committerGravatar Jan Wagner <waja@cyconet.org> 2014-07-30 23:30:59 +0200
commitb7ce241ba66298e06004236936e9915108876144 (patch)
tree2a84abaf751e825cbc08a7f257e0bba83a5d32fc /plugins/check_dns.c
parentd0da78ced184197b29af9fe910aaf56a9e7fe762 (diff)
downloadmonitoring-plugins-b7ce241ba66298e06004236936e9915108876144.tar.gz
check_dns: Use strchr instead of index
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index da90da75..d7f7346f 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -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 */