aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/slhc/slhc_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/tests/slhc/slhc_test.c')
-rw-r--r--openbsc/tests/slhc/slhc_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/tests/slhc/slhc_test.c b/openbsc/tests/slhc/slhc_test.c
index e8ea02f75..d2e1cd9dc 100644
--- a/openbsc/tests/slhc/slhc_test.c
+++ b/openbsc/tests/slhc/slhc_test.c
@@ -182,6 +182,8 @@ static void test_slhc(const void *ctx)
memset(packet, 0, sizeof(packet));
memset(packet_compr, 0, sizeof(packet_compr));
memset(packet_decompr, 0, sizeof(packet_decompr));
+
+ OSMO_ASSERT(strlen(packets[i]) < sizeof(packet_ascii));
strcpy(packet_ascii, packets[i]);
packet_len =