summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82d7295)
raw | patch | inline | side by side (parent: 82d7295)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 21 Feb 2003 21:46:27 +0000 (21:46 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 21 Feb 2003 21:46:27 +0000 (21:46 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@350 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_dns.c | patch | blob | history |
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index c0ea298278049237e8f86fe9a4690851e2d86052..19649f50045bbfdde8c1a8f27239bc4b2dea11b6 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
printf ("%s\n", input_buffer);
if ((temp_buffer = index (input_buffer, ':'))) {
- address = strscpy (address, temp_buffer + 2);
+ temp_buffer++;
+ /* Strip leading spaces */
+ for (; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++)
+ /* NOOP */;
+ address = strscpy (address, temp_buffer);
strip (address);
result = STATE_OK;
}