Fix namec() bug with # lookups
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 15 Sep 2015 14:39:19 +0000 (10:39 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
commit4729ad13fc26324d05ebd6958903572695c1e1d5
treea0a2087acb455afad538850b699769331f72024c
parent64a84afa77dff6fec608ae06eff53db3bf3bc6b6
Fix namec() bug with # lookups

We shouldn't take sizeof(get_cur_genbuf()); we want the buffer's size,
not a char *'s size.

Also, the "n < 2" business seems to be allowing a #device named '/',
which I do not want.
kern/src/ns/chan.c