diff options
Diffstat (limited to 'src/connect.c')
-rw-r--r-- | src/connect.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/connect.c b/src/connect.c index 933c186..3874058 100644 --- a/src/connect.c +++ b/src/connect.c @@ -524,9 +524,7 @@ ConnectToPeer (char *networkIdsList, char **actualConnectionRet) * We need to return the actual network connection string */ - *actualConnectionRet = (char *) malloc (strlen (address) + 1); - strcpy (*actualConnectionRet, address); - + *actualConnectionRet = strdup(address); /* * Return the file descriptor |