[SIGAR-10] Fix sigar_net_info_get /etc/resolv.conf parsing

This commit is contained in:
Doug MacEachern 2006-07-16 00:01:25 +00:00
parent 07b02d1817
commit 41970562c9
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-07-15 Doug MacEachern <dougm@hyperic.com>
* [SIGAR-10] Fix sigar_net_info_get /etc/resolv.conf parsing
2006-07-13 Doug MacEachern <dougm@hyperic.com>
* Validate that sigar.jar is binary compatible with the native library

View File

@ -1168,10 +1168,10 @@ int sigar_net_info_get(sigar_t *sigar,
int len;
SIGAR_SKIP_SPACE(ptr);
if (!(ptr = strstr(ptr, "nameserver "))) {
if (!(ptr = strstr(ptr, "nameserver"))) {
continue;
}
ptr += 11;
ptr += 10;
SIGAR_SKIP_SPACE(ptr);
len = strlen(ptr);