[PATCH] ussd: Fix crash with long ussd string

2012-03-30 Thread Nicolas Bertrand
Some ZTE modem convert USSD string into UCS2 without respecting the limitation of 160 bytes. So cut off the string if greater than this limit --- drivers/atmodem/ussd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/atmodem/ussd.c b/drivers/atmodem/ussd.c index

Re: [PATCH] ussd: Fix crash with long ussd string

2012-03-30 Thread Denis Kenzior
Hi Nicolas, On 03/30/2012 08:16 AM, Nicolas Bertrand wrote: Some ZTE modem convert USSD string into UCS2 without respecting the limitation of 160 bytes. So cut off the string if greater than this limit --- drivers/atmodem/ussd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)