aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/misc.c')
-rw-r--r--samsung-ipc/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samsung-ipc/misc.c b/samsung-ipc/misc.c
index 0bca9c0..609d7b8 100644
--- a/samsung-ipc/misc.c
+++ b/samsung-ipc/misc.c
@@ -23,12 +23,12 @@
#define DEFAULT_IMSI_LENGTH 15
-char* ipc_parse_misc_me_imsi(uint8_t *data, unsigned int size)
+char* ipc_misc_me_imsi_response_get_imsi(struct ipc_response *response)
{
- if (data == NULL || size != DEFAULT_IMSI_LENGTH + 1 || data[0] != DEFAULT_IMSI_LENGTH)
+ if (response == NULL || response->data[0] != DEFAULT_IMSI_LENGTH)
return NULL;
char *buffer = (char*) malloc(sizeof(char) * DEFAULT_IMSI_LENGTH);
- memcpy(buffer, &data[1], DEFAULT_IMSI_LENGTH);
+ memcpy(buffer, &response->data[1], DEFAULT_IMSI_LENGTH);
return buffer;
}