changeset 468:542c6d733772

sms-pdu-decode: null pointer passing fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Feb 2019 22:29:58 +0000
parents dc2fd8e6f42c
children fd4af8023ce6
files uptools/sms-pdu-decode/sms-pdu-decode.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 {