From 6109bebd80c2873d9a5763436902b17a0d68d21c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 05:08:39 +0200 Subject: Added gnu-netcat from old portage --- .../gnu-netcat/files/gnu-netcat-flagcount.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch (limited to 'net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch') diff --git a/net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch b/net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch new file mode 100644 index 0000000..df029a6 --- /dev/null +++ b/net-analyzer/gnu-netcat/files/gnu-netcat-flagcount.patch @@ -0,0 +1,22 @@ +--- bad/netcat-0.7.1/src/flagset.c 2003-12-10 17:18:07.000000000 +0100 ++++ good/netcat-0.7.1/src/flagset.c 2007-03-04 17:38:10.000000000 +0100 +@@ -134,7 +134,7 @@ + + int netcat_flag_count(void) + { +- register char c; ++ register unsigned char c; + register int i; + int ret = 0; + +@@ -154,8 +154,8 @@ + Assumed that the bit number 1 is the sign, and that we will shift the + bit 1 (or the bit that takes its place later) until the the most right, + WHY it has to keep the wrong sign? */ +- ret -= (c >> 7); +- c <<= 1; ++ ret += (c & 1); ++ c >>= 1; + } + } + -- cgit v1.2.3