gsm_7bit_decode: Handle the case of the last charachter being an escape
authorHolger Hans Peter Freyther <zecke@selfish.org>
Mon, 19 Jul 2010 18:54:54 +0000 (02:54 +0800)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Mon, 19 Jul 2010 18:54:54 +0000 (02:54 +0800)
commit446bf376984c0ab0453ec79577b590225e36d991
tree01ee58f769d27d98933ee1fde39fd6e22d5a462a
parent31e97ea34ef77388ad27fa1ee2a5084ae238234f
gsm_7bit_decode: Handle the case of the last charachter being an escape

If i + 1 == length and it is an escape charachter we would try
to read rtext[length] which is one after the field we have allocated.
src/gsm_utils.c