indent(1): ignore null characters from input
This commit is contained in:
parent
370d0cf9be
commit
9963ad6fdf
@ -300,7 +300,8 @@ fill_buffer(void)
|
||||
had_eof = true;
|
||||
break;
|
||||
}
|
||||
*p++ = i;
|
||||
if (i != '\0')
|
||||
*p++ = i;
|
||||
if (i == '\n')
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user