summaryrefslogtreecommitdiff
path: root/src/sm_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sm_client.c')
-rw-r--r--src/sm_client.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sm_client.c b/src/sm_client.c
index 70511c1..faf2b9f 100644
--- a/src/sm_client.c
+++ b/src/sm_client.c
@@ -249,10 +249,7 @@ SmcOpenConnection(char *networkIdsList, SmPointer context,
*clientIdRet = reply.client_id;
- smcConn->client_id = (char *) malloc (
- strlen (*clientIdRet) + 1);
-
- strcpy (smcConn->client_id, *clientIdRet);
+ smcConn->client_id = strdup (*clientIdRet);
}
else
{