indent(1): ignore null characters from input

This commit is contained in:
pstef 2018-06-03 18:32:11 +00:00
parent 89e7752398
commit 4379cc770b

View File

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