X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fipc_c_tcp.c;h=45775a8cada7e3faa3f8638b845fe44d47d00560;hb=f781bc87eeff269e5d570e0d9ecf14efac980cf4;hp=f646a66f48b8dfaf6dc27c92ef5a19ed54c76996;hpb=971a2a6395d1c5fb418f3e2b64ef5213089e6255;p=citadel.git diff --git a/citadel/ipc_c_tcp.c b/citadel/ipc_c_tcp.c index f646a66f4..45775a8ca 100644 --- a/citadel/ipc_c_tcp.c +++ b/citadel/ipc_c_tcp.c @@ -294,7 +294,7 @@ void attach_to_server(int argc, char **argv, char *hostbuf, char *portbuf) /* If we're using a unix domain socket we can do a bunch of stuff */ if (!strcmp(cithost, UDS)) { - sprintf(sockpath, "citadel.socket"); + snprintf(sockpath, sizeof sockpath, "citadel.socket"); serv_sock = uds_connectsock(sockpath); if (hostbuf != NULL) strcpy(hostbuf, cithost); if (portbuf != NULL) strcpy(portbuf, sockpath);