diff options
Diffstat (limited to 'tests/smscb')
-rw-r--r-- | tests/smscb/gsm0341_test.c | 5 |
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); |