Added myname field

This commit is contained in:
Michiel Broek 2005-04-17 12:14:31 +00:00
parent 3b0c70dadc
commit a4a92b0a68

View File

@ -68,7 +68,7 @@ void fill_ncslist(ncs_list **fdp, char *server, char *myname, char *passwd)
memset(tmp, 0, sizeof(tmp)); memset(tmp, 0, sizeof(tmp));
tmp->next = NULL; tmp->next = NULL;
strncpy(tmp->server, server, 63); strncpy(tmp->server, server, 63);
strncpy(tmp->server, myname, 63); strncpy(tmp->myname, myname, 63);
strncpy(tmp->passwd, passwd, 15); strncpy(tmp->passwd, passwd, 15);
tmp->state = NCS_INIT; tmp->state = NCS_INIT;
tmp->action = time(NULL); tmp->action = time(NULL);