diff options
Diffstat (limited to 'src/accept.c')
-rw-r--r-- | src/accept.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/accept.c b/src/accept.c index df2b258..d54ffd4 100644 --- a/src/accept.c +++ b/src/accept.c @@ -92,8 +92,7 @@ IceAcceptStatus *statusRet; iceConn->send_sequence = 0; iceConn->receive_sequence = 0; - iceConn->connection_string = (char *) malloc ( - strlen (listenObj->network_id) + 1); + iceConn->connection_string = strdup(listenObj->network_id); if (iceConn->connection_string == NULL) { @@ -102,8 +101,6 @@ IceAcceptStatus *statusRet; *statusRet = IceAcceptBadMalloc; return (NULL); } - else - strcpy (iceConn->connection_string, listenObj->network_id); iceConn->vendor = NULL; iceConn->release = NULL; |