aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rlc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp
index f31670e..d115f76 100644
--- a/src/rlc.cpp
+++ b/src/rlc.cpp
@@ -28,7 +28,7 @@ extern "C" {
uint8_t *gprs_rlc_data::prepare(size_t block_data_len)
{
/* todo.. only set it once if it turns out to be a bottleneck */
- memset(block, 0x0, ARRAY_SIZE(block));
+ memset(block, 0x0, sizeof(block));
memset(block, 0x2b, block_data_len);
return block;