From 45ce4de65064ffb0e8b1904118cea7e16528cffa Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 7 Aug 2018 23:46:58 +0200 Subject: [PATCH] nusb/ether: fix ethertype filtering --- sys/src/cmd/nusb/ether/ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/nusb/ether/ether.c b/sys/src/cmd/nusb/ether/ether.c index 32d989294..9c3d7626e 100644 --- a/sys/src/cmd/nusb/ether/ether.c +++ b/sys/src/cmd/nusb/ether/ether.c @@ -439,7 +439,7 @@ fswrite(Req *r) 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);