summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6440f8b)
The second time /join was called the correct name in meshlink.conf was not updated.
It appeared a wrong ConnectTo statement in the hosts/name file
return sptps_send_record(&(mesh->sptps), 0, mesh->cookie, sizeof mesh->cookie);
case 0:
return sptps_send_record(&(mesh->sptps), 0, mesh->cookie, sizeof mesh->cookie);
case 0:
- mesh->data = xrealloc(mesh->data, mesh->thedatalen + len + 1);
- memcpy(mesh->data + mesh->thedatalen, msg, len);
- mesh->thedatalen += len;
- mesh->data[mesh->thedatalen] = 0;
+ mesh->data = xrealloc(mesh->data, len + 1);
+ memcpy(mesh->data , msg, len);
+ mesh->thedatalen = len;
+ //mesh->data[mesh->thedatalen] = 0;