mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
315b2bf100
This commit fixes a segfault in swaybar on FreeBSD that was caused by using getdelim with EOF as delimiter on an infinite stream. The FreeBSD implementation handles the "no more data, delimiter not found, and EOF not reached" scenario as an error, so it can't be used to read the output of status command. This commit replaces the getline/getdelim calls with reading all available data from the stream in one go. |
||
---|---|---|
.. | ||
bar.c | ||
config.c | ||
event_loop.c | ||
i3bar.c | ||
ipc.c | ||
main.c | ||
meson.build | ||
render.c | ||
status_line.c |