indent(1): ignore null characters from input

This commit is contained in:
Piotr Pawel Stefaniak 2018-06-03 18:32:11 +00:00
parent 370d0cf9be
commit 9963ad6fdf

View File

@ -300,7 +300,8 @@ fill_buffer(void)
had_eof = true;
break;
}
*p++ = i;
if (i != '\0')
*p++ = i;
if (i == '\n')
break;
}