From d229d838b1ce5d7bbe5149105697947b0d38776b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 24 Jul 2005 05:02:36 +0000 Subject: [PATCH] fix network share who --- src/sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sigar.c b/src/sigar.c index d11359e5..144dde1b 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -780,9 +780,9 @@ static int sigar_who_net_sessions(sigar_t *sigar, who = &wholist->data[wholist->number++]; who->time = (time() - ptr->sesi10_time); - SIGAR_W2A((LPCWSTR)ptr->sesi10_cname, - who->user, sizeof(who->user)); SIGAR_W2A((LPCWSTR)ptr->sesi10_username, + who->user, sizeof(who->user)); + SIGAR_W2A((LPCWSTR)ptr->sesi10_cname, who->host, sizeof(who->host)); SIGAR_SSTRCPY(who->device, "network share");