diff options
Diffstat (limited to 'samsung-ipc/sms.c')
-rw-r--r-- | samsung-ipc/sms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samsung-ipc/sms.c b/samsung-ipc/sms.c index d837881..047754e 100644 --- a/samsung-ipc/sms.c +++ b/samsung-ipc/sms.c @@ -22,7 +22,7 @@ #include <samsung-ipc.h> -unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request *msg, char *smsc, +unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request_header *msg, char *smsc, unsigned char *pdu, int pdu_length) { unsigned char *data = NULL, *p = NULL; @@ -32,13 +32,13 @@ unsigned char *ipc_sms_send_msg_pack(struct ipc_sms_send_msg_request *msg, char return NULL; smsc_len = strlen(smsc); - data_length = smsc_len + pdu_length + sizeof(struct ipc_sms_send_msg_request); + data_length = smsc_len + pdu_length + sizeof(struct ipc_sms_send_msg_request_header); data = (unsigned char *) malloc(sizeof(unsigned char) * data_length); memset(data, 0, data_length); p = data; - memcpy(p, msg, sizeof(struct ipc_sms_send_msg_request)); - p += sizeof(struct ipc_sms_send_msg_request); + memcpy(p, msg, sizeof(struct ipc_sms_send_msg_request_header)); + p += sizeof(struct ipc_sms_send_msg_request_header); memcpy(p, (char *) (smsc + 1), smsc_len); p += smsc_len; memcpy(p, pdu, pdu_length); |