Fix overflow
commitc6c5737ad2de7bac69aa243221e524e135e158a2
authorVladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
Thu, 24 Nov 2011 13:04:44 +0000 (24 14:04 +0100)
committerMichal Čihař <michal@cihar.com>
Thu, 24 Nov 2011 13:21:32 +0000 (24 14:21 +0100)
treed3ede519636447156a555b6110f6311a67487937
parent7f59fbd4ee34098926f2daaaed7fc3a8d980b6d4
Fix overflow

Unicode transformations with some characters may induce up to 4 times
size increase. So 161 isn't enough. Discovered it when I got some
accidental garbage but it may happen with real SMS as well.
libgammu/service/sms/gsmsms.c