diff --git a/src/sigar.c b/src/sigar.c index 18048532..05b6fa1f 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -880,6 +880,9 @@ int sigar_net_info_get(sigar_t *sigar, fclose(fp); + getdomainname(netinfo->domain, sizeof(netinfo->domain)); + netinfo->domain[sizeof(netinfo->domain)-1] = '\0'; + return SIGAR_OK; }