Skip to content

Commit

Permalink
UCP/TAG: Fix buffer usage for recv request debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Sep 16, 2020
1 parent 4e52a03 commit 609a9e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ucp/tag/tag_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ ucp_tag_recv_request_completed(ucp_worker_h worker, ucp_request_t *req,
entry->send_tag = info->sender_tag;
entry->status = "recv_completed_unexp";
entry->recvd_size = info->length;
memcpy(entry->udata, req->recv.buffer,
ucs_min(UCP_TAG_MAX_DATA, info->length));
memcpy(entry->udata, buffer, ucs_min(UCP_TAG_MAX_DATA, info->length));
}

req->status = status;
Expand Down

0 comments on commit 609a9e7

Please sign in to comment.