summaryrefslogtreecommitdiffstats
path: root/tests/smscb
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-12-30 13:25:44 +0100
committerHarald Welte <laforge@gnumonks.org>2014-12-30 13:25:44 +0100
commitc13cf8bbd3a0650993b43e1cea071c02d0f00d8f (patch)
treebf998a377e46542957c7565f3912d1f9c9b85113 /tests/smscb
parentc993a07ceb8cff0226885d39c6af17f0f903e01a (diff)
SMS-CB: introduce and use GSM341_7BIT_PADDING
Diffstat (limited to 'tests/smscb')
-rw-r--r--tests/smscb/gsm0341_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/smscb/gsm0341_test.c b/tests/smscb/gsm0341_test.c
index f7f6bc02..a8e32d47 100644
--- a/tests/smscb/gsm0341_test.c
+++ b/tests/smscb/gsm0341_test.c
@@ -62,8 +62,9 @@ int main(int argc, char **argv)
strncpy(tbuf, text, GSM341_MAX_CHARS);
if (strlen(text) < GSM341_MAX_CHARS)
- memset(tbuf+strlen(text), '\r', sizeof(tbuf)-strlen(text));
- tbuf[93] = 0;
+ memset(tbuf+strlen(text), GSM341_7BIT_PADDING,
+ sizeof(tbuf)-strlen(text));
+ tbuf[GSM341_MAX_CHARS] = 0;
gen_msg_from_text(msg_id, tbuf);