Fix ussd message corruption
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>
Fri, 13 Jul 2012 12:45:12 +0000 (16:45 +0400)
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>
Fri, 13 Jul 2012 12:45:12 +0000 (16:45 +0400)
ss.c

diff --git a/ss.c b/ss.c
index eb6b441..3913afd 100644 (file)
--- a/ss.c
+++ b/ss.c
@@ -179,7 +179,7 @@ void ipc_ss_ussd(struct ipc_message_info *info)
        struct ipc_ss_ussd *ussd = NULL;
        unsigned char state;
 
-       memset(message, 0, sizeof(message) / sizeof(char *));   
+       memset(message, 0, sizeof(message));
 
        ussd = (struct ipc_ss_ussd *) info->data;