diff options
Diffstat (limited to 'samsung-ipc/gprs.c')
-rw-r--r-- | samsung-ipc/gprs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samsung-ipc/gprs.c b/samsung-ipc/gprs.c index 64d94f9..c9722e5 100644 --- a/samsung-ipc/gprs.c +++ b/samsung-ipc/gprs.c @@ -56,9 +56,9 @@ int ipc_gprs_pdp_context_request_set_setup( data->magic1[2] = 0x13; data->magic2 = 0x01; - strncpy((char *) data->username, username, + memcpy(data->username, username, sizeof(data->username)); - strncpy((char *) data->password, password, + memcpy(data->password, password, sizeof(data->password)); } |