shithub: riscv

Download patch

ref: 45ce4de65064ffb0e8b1904118cea7e16528cffa
parent: 445fc8e5a7ab20dc0613a6b1faedfe7f5183e7a9
author: cinap_lenrek <[email protected]>
date: Tue Aug 7 19:46:58 EDT 2018

nusb/ether: fix ethertype filtering

--- a/sys/src/cmd/nusb/ether/ether.c
+++ b/sys/src/cmd/nusb/ether/ether.c
@@ -439,7 +439,7 @@
 			memcpy(x, p, n-8);
 			x[n-8] = 0;
 
-			conn[NUM(path)].type = atoi(p);
+			conn[NUM(path)].type = strtoul(x, nil, 0);
 		}
 		r->ofcall.count = n;
 		respond(r, nil);