summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/hi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 4cbca999..de9111a6 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -739,6 +739,7 @@ int main(int argc, char *argv[]) {
 		if (!str) err(EX_OSERR, "realloc");
 	}
 	if (ferror(file)) err(EX_IOERR, "fread");
+	if (memchr(str, 0, len)) errx(EX_DATAERR, "input is binary");
 	str[len] = '\0';
 
 	enum Class *hi = calloc(len, sizeof(*hi));
d> 2020-02-10Only make windows hotterJune McEnroe 2020-02-10Always increase unreadLinesJune McEnroe 2020-02-10Move scroll marker on resizeJune McEnroe 2020-02-10Update line count for words longer than linesJune McEnroe 2020-02-10Simplify mark, heat, unread trackingJune McEnroe 2020-02-10Update prompt when own nick changesJune McEnroe 2020-02-10Match URLs surrounded by parenthesesJune McEnroe 2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe 2020-02-09Add M-lJune McEnroe 2020-02-09Add /whoisJune McEnroe 2020-02-09Add /msgJune McEnroe