diff --git a/sys/libkern/gets.c b/sys/libkern/gets.c index 423146ed5edb..4834da0f5b76 100644 --- a/sys/libkern/gets.c +++ b/sys/libkern/gets.c @@ -56,6 +56,8 @@ gets(char *cp, size_t size, int visible) lp--; } continue; + case '\0': + continue; default: if (lp < end) { if (visible)