Author: pstef Date: Sun Jun 3 18:32:11 2018 New Revision: 334579 URL: https://svnweb.freebsd.org/changeset/base/334579
Log: indent(1): ignore null characters from input Modified: head/usr.bin/indent/io.c Modified: head/usr.bin/indent/io.c ============================================================================== --- head/usr.bin/indent/io.c Sun Jun 3 18:29:20 2018 (r334578) +++ head/usr.bin/indent/io.c Sun Jun 3 18:32:11 2018 (r334579) @@ -300,7 +300,8 @@ fill_buffer(void) had_eof = true; break; } - *p++ = i; + if (i != '\0') + *p++ = i; if (i == '\n') break; } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"