diff options
author | 2019-01-19 10:31:55 -0500 | |
---|---|---|
committer | 2019-01-19 18:45:25 +0100 | |
commit | 62260ab56e398aba81fef1a3b6d5f72d6aa6532d (patch) | |
tree | a7264e6676381ec9cc5dca6725d88e3257d9d0db /assets/Sway_Logo+Text_Ver3.svg | |
parent | apply_output_config: remove output_i (diff) | |
download | sway-62260ab56e398aba81fef1a3b6d5f72d6aa6532d.tar.gz sway-62260ab56e398aba81fef1a3b6d5f72d6aa6532d.tar.zst sway-62260ab56e398aba81fef1a3b6d5f72d6aa6532d.zip |
Fix backup methods in get_socketpath for IPC client
Previously, the success of `getline` was tested by checking if the
buffer it allocates is nonempty and has a nonzero first byte. As
`getline` does not explicitly zero out its memory buffer, this may
fail (e.g., with AddressSanitizer). Instead, we check that at least one
character was returned on standard output.
Also, trailing newlines (if present) are now removed.
Diffstat (limited to 'assets/Sway_Logo+Text_Ver3.svg')
0 files changed, 0 insertions, 0 deletions