From 300b31b2dfb3ee7a84c78bd2802cb5649d0dc1ba Mon Sep 17 00:00:00 2001 From: Sam Newbold Date: Mon, 10 Jun 2019 16:29:37 +0200 Subject: print_file_contents: allocate enough to include \0 related to #331 Previously, if max_chars was read, the null byte would be written past the end of buf. --- testcases/025-file-contents/expected_output.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testcases/025-file-contents/expected_output.txt') diff --git a/testcases/025-file-contents/expected_output.txt b/testcases/025-file-contents/expected_output.txt index 5c56020..b3fb8e5 100644 --- a/testcases/025-file-contents/expected_output.txt +++ b/testcases/025-file-contents/expected_output.txt @@ -1 +1 @@ -contents | NONEXISTANT - 2: No such file or directory +contents | con | NONEXISTANT - 2: No such file or directory -- cgit v1.2.3