aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/input/xkb_numlock.c
diff options
context:
space:
mode:
authorsghctoma <sghctoma@gmail.com>2018-09-26 20:38:16 +0200
committersghctoma <sghctoma@gmail.com>2018-09-26 20:38:16 +0200
commit315b2bf100acc5a8095807763e5d838eed0c3e4f (patch)
tree64e0da2c9c189910a3f665e09b1c5ddcb18fe478 /sway/commands/input/xkb_numlock.c
parenta8a0014e0f25eefdf6712387c34e8d55614205ce (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/xkb_numlock.c')
0 files changed, 0 insertions, 0 deletions