summaryrefslogtreecommitdiffstats
path: root/package/vice/vice-1.22-remove-bzero.patch
diff options
context:
space:
mode:
authorJohn Voltz <john.voltz@gmail.com>2008-03-06 18:28:26 +0000
committerJohn Voltz <john.voltz@gmail.com>2008-03-06 18:28:26 +0000
commit70b2460ed994b85fe8904ab8e79dda8a782e5e5b (patch)
treebf4f8f081d78013e2a39e1570f24420746f375a8 /package/vice/vice-1.22-remove-bzero.patch
parent9fc65734f8843c3a3ea33ef523133d4fbfcd6cab (diff)
downloadbuildroot-novena-70b2460ed994b85fe8904ab8e79dda8a782e5e5b.tar.gz
buildroot-novena-70b2460ed994b85fe8904ab8e79dda8a782e5e5b.zip
added vice
Diffstat (limited to 'package/vice/vice-1.22-remove-bzero.patch')
-rw-r--r--package/vice/vice-1.22-remove-bzero.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/vice/vice-1.22-remove-bzero.patch b/package/vice/vice-1.22-remove-bzero.patch
new file mode 100644
index 000000000..5836a9fce
--- /dev/null
+++ b/package/vice/vice-1.22-remove-bzero.patch
@@ -0,0 +1,20 @@
+--- a/src/network.c 2007-07-15 18:49:24.000000000 -0400
++++ b/src/network.c 2008-03-01 21:29:40.000000000 -0500
+@@ -742,7 +742,7 @@ int network_start_server(void)
+
+ #ifdef HAVE_IPV6
+ if (netplay_ipv6) {
+- bzero((char*)&server_addr6, sizeof(struct sockaddr_in6));
++ memset((char*)&server_addr6, 0, sizeof(struct sockaddr_in6));
+ server_addr6.sin6_port = htons(server_port);
+ server_addr6.sin6_family = PF_INET6;
+ server_addr6.sin6_addr=in6addr_any;
+@@ -853,7 +853,7 @@ int network_connect_client(void)
+ }
+ #ifdef HAVE_IPV6
+ if (netplay_ipv6) {
+- bzero((char*)&server_addr6, sizeof(struct sockaddr_in6));
++ memset((char*)&server_addr6, 0, sizeof(struct sockaddr_in6));
+ server_addr6.sin6_port = htons(server_port);
+ server_addr6.sin6_family = PF_INET6;
+ memcpy(&server_addr6.sin6_addr, server_hostent->h_addr, server_hostent->h_length);