ref: 69b65a23c794154b728401a1c19f24e4832ce91b
parent: 5210bd74bda8144154aafb5dc454e3a769c1ae1b
author: cinap_lenrek <cinap_lenrek@felloff.net>
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);
--
⑨