提交 03b0c42c 编写于 作者: L LEAN-ESX

shadowsocksr-libev: workaround for Werror-sizeof-pointer-memaccess in GCC 4.9+

上级 426b3643
......@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=shadowsocksr-libev
PKG_VERSION:=2.5.6
PKG_RELEASE:=3
PKG_RELEASE:=5
PKG_SOURCE_PROTO:=git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
......
--- a/src/local.c
+++ b/src/local.c
@@ -718,7 +718,7 @@
ss_free(hostname);
} else {
- strncpy(host, ip, sizeof(ip));
+ strncpy(host, ip, INET6_ADDRSTRLEN);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册