Commit Graph

10 Commits

Author SHA1 Message Date
Michael Stapelberg c1e9069aa1
fix segfault when a read_file block lacks a path field (#490)
fixes #489
2022-06-12 18:34:28 +02:00
Michael Stapelberg 73c6eb2d4c use param structs everywhere for consistency 2021-11-02 21:45:31 +01:00
Michael Stapelberg 4722198875 wireless: fix colors (+param struct) 2021-11-02 20:48:58 +01:00
Michael Stapelberg 11d5c9863e print_file_contents: define parameter struct, use strncpy()
The list of parameters was getting too lengthy.
2021-11-02 19:40:40 +01:00
Michael Stapelberg 8598a76681 print_file_contents: fix colors
Commit
f0b5758c72
broke the END_COLOR macro because the outwalk variable was not updated.
2021-11-01 09:41:17 +01:00
Orestis Floros 94d10968c9
print_file_contents: Resolve tilde
Fixes #350
2020-05-01 12:20:34 +02:00
Orestis Floros d8e8eb2eef
Move general functions scalloc, sstrdup out of i3status.c 2020-05-01 12:16:55 +02:00
Felix Buehler f0b5758c72 use format_placeholder for file_content 2020-04-03 16:15:38 +02:00
Sam Newbold 300b31b2df
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.
2019-06-10 16:36:18 +02:00
Dennis Vesterlund 9b5f6ae5f4 Added function to print content from file (#331)
Added a function to print file contents to status bar without newlines.
Added tests for print file contents function
Added manpage entry for file contents
2019-02-21 15:34:32 +01:00