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);