FreeCalypso > hg > freecalypso-tools
comparison uptools/sms-pdu-decode/pdu-common.c @ 802:1c599681fd60
pcm-sms-decode & sms-pdu-decode: revamp bad char decoding
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 25 Mar 2021 02:58:30 +0000 |
parents | 8dc93aac9a9c |
children | 30fbaa652ea5 |
comparison
equal
deleted
inserted
replaced
801:da724c67159d | 802:1c599681fd60 |
---|---|
248 | 248 |
249 process_pdu(require_exact_length) | 249 process_pdu(require_exact_length) |
250 { | 250 { |
251 unsigned udl, udl_octets; | 251 unsigned udl, udl_octets; |
252 unsigned udhl, udh_octets, udh_chars, ud_chars; | 252 unsigned udhl, udh_octets, udh_chars, ud_chars; |
253 u_char ud7[160], decode_buf[321]; | 253 u_char ud7[160], decode_buf[481]; |
254 int do_hexdump; | 254 int do_hexdump; |
255 unsigned decoded_len, badchars; | 255 unsigned decoded_len, badchars; |
256 | 256 |
257 if (handle_sca() < 0) | 257 if (handle_sca() < 0) |
258 return(-1); | 258 return(-1); |