diff options
author | Ingo Bürk <admin@airblader.de> | 2019-06-18 09:33:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-18 09:33:47 +0200 |
commit | bd7de0c8ff07023f0ccfdc11bd2f0ab930611076 (patch) | |
tree | b6e35d33b4aec49343a88a046268684b8d697be6 /testcases/025-file-contents/i3status.conf | |
parent | 9b5f6ae5f460c8642286cf174751a317f155d043 (diff) | |
parent | 300b31b2dfb3ee7a84c78bd2802cb5649d0dc1ba (diff) |
Merge pull request #347 from thrasymache/overflow
print_file_contents: allocate enough to include \0
Diffstat (limited to 'testcases/025-file-contents/i3status.conf')
-rw-r--r-- | testcases/025-file-contents/i3status.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testcases/025-file-contents/i3status.conf b/testcases/025-file-contents/i3status.conf index 26646cd..78f9f50 100644 --- a/testcases/025-file-contents/i3status.conf +++ b/testcases/025-file-contents/i3status.conf @@ -3,12 +3,18 @@ general { } order += "read_file EXISTING" +order += "read_file TRUNCATED" order += "read_file NONEXISTANT" read_file EXISTING { path = "testcases/025-file-contents/short.txt" } +read_file TRUNCATED { + path = "testcases/025-file-contents/short.txt" + max_characters = 3 +} + read_file NONEXISTANT { path = "testcases/025-file-contents/nonexistant" } |