Commit dd5b752d authored by Yury Popov's avatar Yury Popov

GCC build fix

parent 003dbc13
......@@ -586,7 +586,6 @@ int main(int argc, const char * argv[]) {
memset(&sadr, 0, sizeof(sadr));
sadr.sun_family = AF_UNIX;
strcpy(sadr.sun_path, sockf);
sadr.sun_len = strlen(sockf)+sizeof(sadr.sun_len)+sizeof(sadr.sun_family);
if (bind(sock, (const struct sockaddr *)&sadr, sizeof(sadr)) == -1) {
printf(" bind error %d\n", errno);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment