summaryrefslogtreecommitdiff
path: root/user/sane/network.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-05-28 18:15:43 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-07 09:58:11 -0500
commitd83f2cccb3befbb9789a60c4aff984f5229c72a0 (patch)
treecc85a3274fea94538913b7f22a2df77ab8648b8d /user/sane/network.patch
parent6afd0778a05bbf9c16caa964f7d63e6e611300af (diff)
downloadpackages-d83f2cccb3befbb9789a60c4aff984f5229c72a0.tar.gz
packages-d83f2cccb3befbb9789a60c4aff984f5229c72a0.tar.bz2
packages-d83f2cccb3befbb9789a60c4aff984f5229c72a0.tar.xz
packages-d83f2cccb3befbb9789a60c4aff984f5229c72a0.zip
user/sane: Update to 1.3.1 for GCC + other fixes
Also, they have dropped the SANE Exception from the genesys backend's license. Everything is GPL-2.0+ or Public-Domain now. Closes: #1186
Diffstat (limited to 'user/sane/network.patch')
-rw-r--r--user/sane/network.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/user/sane/network.patch b/user/sane/network.patch
index 845bf9913..a8f53cfce 100644
--- a/user/sane/network.patch
+++ b/user/sane/network.patch
@@ -1,6 +1,6 @@
--- sane-backends-1.0.30/sanei/sanei_tcp.c 2020-05-17 06:54:18.000000000 -0500
+++ sane-backends-1.0.30/sanei/sanei_tcp.c 2020-06-10 14:10:06.980398975 -0500
-@@ -46,6 +46,7 @@
+@@ -44,6 +44,7 @@
#include <stdlib.h>
#include <string.h>
#include <limits.h>
@@ -8,7 +8,7 @@
#ifndef SSIZE_MAX
#define SSIZE_MAX LONG_MAX
-@@ -130,6 +131,7 @@ sanei_tcp_read(int fd, u_char * buf, siz
+@@ -128,6 +130,7 @@ sanei_tcp_read(int fd, u_char * buf, siz
{
size_t bytes_recv = 0;
ssize_t rc = 1;
@@ -16,7 +16,7 @@
if (count > SSIZE_MAX) {
errno = EINVAL;
-@@ -139,9 +141,21 @@ sanei_tcp_read(int fd, u_char * buf, siz
+@@ -137,9 +139,21 @@ sanei_tcp_read(int fd, u_char * buf, siz
while (bytes_recv < count && rc > 0)
{
rc = recv(fd, buf+bytes_recv, count-bytes_recv, 0);