svn commit: r334579 - head/usr.bin/indent
Piotr Pawel Stefaniak
pstef at FreeBSD.org
Sun Jun 3 18:32:12 UTC 2018
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;
}
More information about the svn-src-head
mailing list