Drop the \0 from readstr()
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 28 Sep 2018 20:10:57 +0000 (16:10 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 2 Oct 2018 18:07:01 +0000 (14:07 -0400)
commit8c40c98c670084bf352d73e32c89f3f0c6b9aa7f
treef357834dfed5cf9b496c9c31e713ce299a228071
parentb2253c94546aff373e239e7db1e20e0d4c2a1a79
Drop the \0 from readstr()

Userspace can handle determining the length by the return value.  Some
tools (e.g. GNU grep) don't like the \0 and think the contents are binary.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ns/util.c