1
1
mirror of https://github.com/swaywm/sway synced 2024-09-29 16:31:21 +02:00
sway/common
M Stoeckl 62260ab56e 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.
2019-01-19 18:45:25 +01:00
..
background-image.c
cairo.c
ipc-client.c Fix backup methods in get_socketpath for IPC client 2019-01-19 18:45:25 +01:00
list.c Merge pull request #3271 from ianyfan/list-cleanup 2018-12-09 21:50:19 +10:00
log.c
loop.c list.c: rename free_flat_list to list_free_items_and_destroy 2018-12-09 01:15:38 +00:00
meson.build Remove unicode.c 2019-01-17 12:45:41 +01:00
pango.c Use static arrays where possible. 2019-01-16 13:02:26 +01:00
stringop.c fixup! stringop.c: rewrite strip_whitespace 2019-01-02 18:47:22 +00:00
util.c Remove readline.c 2019-01-01 09:01:25 +00:00