summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
974d5f4)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
/* go back and insert attr_len */
attr_len = htons(len - 4);
/* go back and insert attr_len */
attr_len = htons(len - 4);
- memcpy(&peer->outbuf->packet.data + 2, &attr_len, sizeof(attr_len));
+ memcpy((char *)&peer->outbuf->packet.data + 2, &attr_len, sizeof(attr_len));
peer->outbuf->packet.header.len = htons(len);
peer->outbuf->done = 0;
peer->outbuf->packet.header.len = htons(len);
peer->outbuf->done = 0;