Skip to content

Commit

Permalink
[proto_hep] fix bad pointer source for generic chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutrazvanionita committed Sep 15, 2016
1 parent 31814f0 commit 3e2e00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/proto_hep/hep.c
Expand Up @@ -1219,7 +1219,7 @@ static char* build_hep3_buf(struct hep_desc* hep_msg, int* len)
memcpy(buf+*len, &it->chunk, sizeof(hep_chunk_t));
UPDATE_CHECK_REMAINING(rem, *len, sizeof(hep_chunk_t));

memcpy(buf+*len, &it->data, hdr_len - sizeof(hep_chunk_t));
memcpy(buf+*len, it->data, hdr_len - sizeof(hep_chunk_t));
UPDATE_CHECK_REMAINING(rem, *len, hdr_len - sizeof(hep_chunk_t));
}

Expand Down

0 comments on commit 3e2e00a

Please sign in to comment.