summaryrefslogtreecommitdiff
path: root/net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch')
-rw-r--r--net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch b/net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch
index cdf1e601194b..6c00bf3f7ebb 100644
--- a/net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch
+++ b/net-proxy/tayga/files/tayga-0.9.2-static-EAM.patch
@@ -4,7 +4,7 @@ Description: Support SIIT-DC styled EAM static maps
.
Author: Benda Xu <heroxbd@gentoo.org>
Forwarded: Nathan Lutchansky <lutchann@litech.org>
-Last-Update: 2018-12-28
+Last-Update: 2024-01-09
--- a/conffile.c
+++ b/conffile.c
@@ -17,7 +17,7 @@ Last-Update: 2018-12-28
+ unsigned int prefix4 = 32;
+ if (slash) {
+ prefix4 = atoi(slash+1);
-+ slash[0] = NULL;
++ slash[0] = '\0';
+ }
+
if (!inet_pton(AF_INET, args[0], &m->map4.addr)) {
@@ -33,7 +33,7 @@ Last-Update: 2018-12-28
+ slash = strchr(args[1], '/');
+ if (slash) {
+ prefix6 = atoi(slash+1);
-+ slash[0] = NULL;
++ slash[0] = '\0';
+ }
+
+ if ((32 - prefix4) != (128 - prefix6)) {