1
0
mirror of https://github.com/fumiama/simple-http-server.git synced 2026-06-05 00:30:23 +08:00

fix accept

This commit is contained in:
源文雨
2022-03-04 19:43:03 +08:00
parent 4900c4cf01
commit a85c616cb8

View File

@@ -545,7 +545,7 @@ static int accept_client(int server_sock, int is_unix_sock) {
continue;
}
if(is_unix_sock) {
uclient_name.sun_path[sizeof(uclient_name.sun_path)-1] = 0;
((char*)&uclient_name)[client_name_len] = 0;
printf("Accept client %s\n", uclient_name.sun_path);
}
else {