diff options
author | Joerie de Gram <j.de.gram@gmail.com> | 2011-10-28 13:48:21 +0200 |
---|---|---|
committer | Joerie de Gram <j.de.gram@gmail.com> | 2011-10-28 13:53:28 +0200 |
commit | 29e098630b1767f4df537276144bc1db4e9112b0 (patch) | |
tree | c45fe87697745d61f089a9520b368a40bbe48051 | |
parent | 49b8e81bb02b0202c56f5dfabe53a53bbc5c2d27 (diff) | |
download | external_libsamsung-ipc-29e098630b1767f4df537276144bc1db4e9112b0.zip external_libsamsung-ipc-29e098630b1767f4df537276144bc1db4e9112b0.tar.gz external_libsamsung-ipc-29e098630b1767f4df537276144bc1db4e9112b0.tar.bz2 |
explicitly cast strncpy parameter to char*
-rw-r--r-- | samsung-ipc/gprs.c | 6 | ||||
-rw-r--r-- | samsung-ipc/sec.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/samsung-ipc/gprs.c b/samsung-ipc/gprs.c index 7f656a6..da39ba6 100644 --- a/samsung-ipc/gprs.c +++ b/samsung-ipc/gprs.c @@ -29,7 +29,7 @@ void ipc_gprs_define_pdp_context_setup(struct ipc_gprs_define_pdp_context *messa message->unk0[0] = 0x1; message->unk0[1] = 0x1; message->unk0[2] = 0x2; - strncpy(message->apn, apn, 124); + strncpy((char*)message->apn, apn, 124); } void ipc_gprs_pdp_context_setup(struct ipc_gprs_pdp_context *message, char *username, char *password) @@ -39,6 +39,6 @@ void ipc_gprs_pdp_context_setup(struct ipc_gprs_pdp_context *message, char *user message->unk0[1] = 0x1; message->unk0[2] = 0x13; message->unk2 = 0x1; - strncpy(message->username, username, 32); - strncpy(message->password, password, 32); + strncpy((char*)message->username, username, 32); + strncpy((char*)message->password, password, 32); } diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c index 174b842..5d43a62 100644 --- a/samsung-ipc/sec.c +++ b/samsung-ipc/sec.c @@ -32,13 +32,13 @@ void ipc_sec_pin_status_set_setup(struct ipc_sec_pin_status_set *message, if (pin1 != NULL) { - strncpy(message->pin1, pin1, 8); + strncpy((char*)message->pin1, pin1, 8); message->length1 = strlen(pin1); } if (pin2 != NULL) { - strncpy(message->pin2, pin2, 8); + strncpy((char*)message->pin2, pin2, 8); message->length2 = strlen(pin2); } } |