aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-04 11:36:54 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-04 11:38:28 +0100
commit9ac974a669b4bc1cbfa9c83fcd205d0f449e3d9b (patch)
tree11add06fb5c59ecd2beecf64d6a9d1eecc9e8c31
parent1e17fffa0543077b1305a3e86755de6dc179a2ac (diff)
EXPERIMENTAL use memcpy
Ticket: OW#???? Sponsored-by: On-Waves ehf
-rw-r--r--src/tbf_dl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index abbeef6..cdbd923 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -649,8 +649,9 @@ struct msgb *gprs_rlcmac_dl_tbf::create_dl_acked_block(
punct[data_block_idx] = data_block_idx;
rdbi = &rlc.block_info[data_block_idx];
- OSMO_ASSERT(rdbi->data_len == m_rlc.block(bsn)->block_info->data_len);
- *rdbi = m_rlc.block(bsn)->block_info;
+ OSMO_ASSERT(rdbi->data_len == m_rlc.block(bsn)->block_info.data_len);
+ OSMO_ASSERT(sizeof(*rdbi) == sizeof(m_rlc.block(bsn)->block_info));
+ memcpy(rdbi, &m_rlc.block(bsn)->block_info, sizeof(*rdbi));;
is_final = is_final || rdbi->cv == 0;
LOGP(DRLCMACDL, LOGL_DEBUG, "- Copying data unit %d (BSN %d)\n",