tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linuxPackages.usbip: fix build with gcc8
Franz Pletz
6 years ago
45d6ccea
84de36a0
+18
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
usbip
default.nix
fix-snprintf-truncation.patch
+5
pkgs/os-specific/linux/usbip/default.nix
···
5
5
6
6
src = kernel.src;
7
7
8
8
+
patches = [
9
9
+
# fixes build with gcc8
10
10
+
./fix-snprintf-truncation.patch
11
11
+
];
12
12
+
8
13
nativeBuildInputs = [ autoconf automake libtool ];
9
14
buildInputs = [ udev ];
10
15
+13
pkgs/os-specific/linux/usbip/fix-snprintf-truncation.patch
···
1
1
+
diff --git a/tools/usb/usbip/libsrc/vhci_driver.c b/tools/usb/usbip/libsrc/vhci_driver.c
2
2
+
index 8159fd98680b..7d6eb3e3fe1e 100644
3
3
+
--- a/tools/usb/usbip/libsrc/vhci_driver.c
4
4
+
+++ b/tools/usb/usbip/libsrc/vhci_driver.c
5
5
+
@@ -111,7 +111,7 @@ static int parse_status(const char *value)
6
6
+
static int refresh_imported_device_list(void)
7
7
+
{
8
8
+
const char *attr_status;
9
9
+
- char status[MAX_STATUS_NAME+1] = "status";
10
10
+
+ char status[MAX_STATUS_NAME+2] = "status";
11
11
+
int i, ret;
12
12
+
13
13
+
for (i = 0; i < vhci_driver->ncontrollers; i++) {