diff options
-rw-r--r-- | lib/libncp/ncpl_conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libncp/ncpl_conn.c b/lib/libncp/ncpl_conn.c index a54c625..8f49cb9 100644 --- a/lib/libncp/ncpl_conn.c +++ b/lib/libncp/ncpl_conn.c @@ -424,9 +424,9 @@ ncp_login(int connHandle, const char *user, int objtype, const char *password) { ncp_init_request(conn); ncp_add_byte(conn, NCP_CONN_LOGIN); p = (struct ncp_conn_login *)&conn->packet[conn->rqsize]; - (const char*)p->username = user; + p->username = (char *)user; p->objtype = objtype; - (const char*)p->password = password; + p->password = (char *)password; conn->rqsize += sizeof(*p); if ((error = ncp_conn_request(connHandle, conn)) < 0) return -1; |