mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
62260ab56e
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. |
||
---|---|---|
.. | ||
background-image.c | ||
cairo.c | ||
ipc-client.c | ||
list.c | ||
log.c | ||
loop.c | ||
meson.build | ||
pango.c | ||
stringop.c | ||
util.c |