aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-08 13:57:51 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-08 13:57:51 +0200
commitbb9f89745a96dc2b1452a05d4b0e260c276a5779 (patch)
tree8ff731d8ff4081f67422629b372e5ee92fadba37
parent5b6416a729b46aab8ac7ea25a7ec91f3afeaf4fc (diff)
tests: Fix the sms_test and use the right array
It started to behave weird on Debian Testing (GCC 4.8), I compiled it with address sanitizer support and set a breakpoint in __asan_report_error to get a backtrace.
-rw-r--r--tests/sms/sms_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sms/sms_test.c b/tests/sms/sms_test.c
index a79d454..8e10241 100644
--- a/tests/sms/sms_test.c
+++ b/tests/sms/sms_test.c
@@ -371,7 +371,7 @@ int main(int argc, char** argv)
memset(result, 0xaa, sizeof(result));
for (buffer_size = 1;
- buffer_size < test_encode[i].expected_septet_length + 1
+ buffer_size < test_decode[i].expected_septet_length + 1
&& buffer_size < sizeof(result) - 1;
++buffer_size)
{