diff options
author | sghctoma <sghctoma@gmail.com> | 2018-09-26 20:38:16 +0200 |
---|---|---|
committer | sghctoma <sghctoma@gmail.com> | 2018-09-26 20:38:16 +0200 |
commit | 315b2bf100acc5a8095807763e5d838eed0c3e4f (patch) | |
tree | 64e0da2c9c189910a3f665e09b1c5ddcb18fe478 /sway/commands/input/middle_emulation.c | |
parent | a8a0014e0f25eefdf6712387c34e8d55614205ce (diff) |
Replace getdelim to make swaybar work on FreeBSD
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.
Diffstat (limited to 'sway/commands/input/middle_emulation.c')
0 files changed, 0 insertions, 0 deletions