indent(1): ignore null characters from input
This commit is contained in:
parent
370d0cf9be
commit
9963ad6fdf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334579
@ -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