fix network share who

This commit is contained in:
Doug MacEachern 2005-07-24 05:02:36 +00:00
parent 31f138dd0b
commit d229d838b1
1 changed files with 2 additions and 2 deletions

View File

@ -780,9 +780,9 @@ static int sigar_who_net_sessions(sigar_t *sigar,
who = &wholist->data[wholist->number++]; who = &wholist->data[wholist->number++];
who->time = (time() - ptr->sesi10_time); who->time = (time() - ptr->sesi10_time);
SIGAR_W2A((LPCWSTR)ptr->sesi10_cname,
who->user, sizeof(who->user));
SIGAR_W2A((LPCWSTR)ptr->sesi10_username, SIGAR_W2A((LPCWSTR)ptr->sesi10_username,
who->user, sizeof(who->user));
SIGAR_W2A((LPCWSTR)ptr->sesi10_cname,
who->host, sizeof(who->host)); who->host, sizeof(who->host));
SIGAR_SSTRCPY(who->device, "network share"); SIGAR_SSTRCPY(who->device, "network share");