From 84e714b548fe7b4c1c3a358d5d4b206f50dccf0f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 1 Jan 2017 19:57:52 -0800 Subject: Backtrace fix found by gcc warning. --- src/protocol/reqrep/rep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c index 7623bd2c..75cdaa2e 100644 --- a/src/protocol/reqrep/rep.c +++ b/src/protocol/reqrep/rep.c @@ -417,7 +417,7 @@ nni_rep_recvfilter(void *arg, nni_msg *msg) return (NULL); } rep->btrace_len = len; - memcpy(rep->btrace, 0, len); + memcpy(rep->btrace, header, len); nni_msg_trim_header(msg, len); nni_mtx_unlock(&rep->mx); return (msg); -- cgit v1.2.3-70-g09d2