mirror of
https://github.com/fumiama/simple-http-server.git
synced 2026-06-11 21:50:41 +08:00
fix accept
This commit is contained in:
2
server.c
2
server.c
@@ -545,7 +545,7 @@ static int accept_client(int server_sock, int is_unix_sock) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(is_unix_sock) {
|
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);
|
printf("Accept client %s\n", uclient_name.sun_path);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user