summaryrefslogtreecommitdiffstats
path: root/web/attachments/42908-check_dns_freebsd.patch
blob: c856ab9edf169cb5bdd452c790866e3c24794917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- check_dns.c.orig	Wed Feb 19 21:01:54 2003
+++ check_dns.c	Wed Feb 19 21:07:22 2003
@@ -132,7 +132,10 @@
 				printf ("%s\n", input_buffer);
 
 			if ((temp_buffer = index (input_buffer, ':'))) {
-				address = strscpy (address, temp_buffer + 2);
+				temp_buffer++;
+				for(; *temp_buffer != '\0' && *temp_buffer == ' '; temp_buffer++)
+					/* NOOP */;
+				address = strscpy (address, temp_buffer);
 				strip (address);
 				result = STATE_OK;
 			}