Fix Build Fail with GCC8

This commit is contained in:
FlyingheartCN
2018-05-04 01:41:36 +08:00
parent eb53d54334
commit 662b6db3f3
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -813,7 +813,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
int offset = 0;
int need_query = 0;
char atyp = server->buf->data[offset++];
char host[257] = { 0 };
char host[255] = { 0 };
uint16_t port = 0;
struct addrinfo info;
struct sockaddr_storage storage;