indent(1): ignore null characters from input
This commit is contained in:
parent
89e7752398
commit
4379cc770b
@ -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