# HG changeset patch # User Mychaela Falconia # Date 1549924198 0 # Node ID 542c6d733772c385d054b6e52b2d0c15d9b7c2aa # Parent dc2fd8e6f42ce1d8e6377508f88a59c3e07094cd sms-pdu-decode: null pointer passing fixes diff -r dc2fd8e6f42c -r 542c6d733772 uptools/sms-pdu-decode/sms-pdu-decode.c --- a/uptools/sms-pdu-decode/sms-pdu-decode.c Mon Feb 11 22:17:46 2019 +0000 +++ b/uptools/sms-pdu-decode/sms-pdu-decode.c Mon Feb 11 22:29:58 2019 +0000 @@ -88,8 +88,9 @@ else if ((pdu[pdu_ptr+1] & 0x70) == 0x50 && alpha_addr_valid(pdu[pdu_ptr], &alpha_nsep)) { gsm7_unpack(pdu + pdu_ptr + 2, alpha_gsm7, alpha_nsep); - gsm7_to_ascii_or_ext(alpha_gsm7, alpha_nsep, alpha_decoded, 0, - ascii_ext_mode, 0, 0); + gsm7_to_ascii_or_ext(alpha_gsm7, alpha_nsep, alpha_decoded, + (unsigned *) 0, ascii_ext_mode, 0, + (unsigned *) 0); printf("%s: \"%s\" (type 0x%02X)\n", direction, alpha_decoded, pdu[pdu_ptr+1]); } else {