yambar/modules
Daniel Eklöf f2d25c8341
script: fix buffer resize bug
If the amount of data coming in is more than we can hold in our
buffer, we resized the buffer by doubling its size. However, there
were two(!) issues here:

* If this was the first resize, the buffer size was set to 1024. This
  may not be enough (i.e. there may be more than 1024 bytes to process).
* In all other cases, the buffer size was doubled. However, there is
  still no guarantee the buffer is large enough.

Fix by looping until the buffer *is* large enough.
2024-02-05 12:52:40 +01:00
..
alsa.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
backlight.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
battery.c module: battery: style 2024-01-03 15:30:03 +01:00
clock.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
cpu.c modules: change min poll interval from 500ms to 250ms 2022-12-27 13:20:31 +01:00
disk-io.c modules: change min poll interval from 500ms to 250ms 2022-12-27 13:20:31 +01:00
dwl.c modules/dwl: handle the appid status 2023-03-26 16:08:55 +09:00
foreign-toplevel.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
i3-common.c modules: Implement workspace move event 2022-12-13 16:21:55 +01:00
i3-common.h modules: Implement workspace move event 2022-12-13 16:21:55 +01:00
i3-ipc.h module/i3: use our own copy of i3/ipc.h 2019-03-31 12:08:44 +02:00
i3.c Fix incorrect empty/title state of i3 workspaces 2024-02-05 12:45:02 +01:00
label.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
mem.c Fix "mem" values updated while it should not 2024-02-05 12:49:26 +01:00
meson.build modules: meson: add missing ‘m’ (math) dependency 2022-12-17 18:26:25 +01:00
mpd.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
network.c Add new "quality" tag to "network" module 2024-01-04 13:44:54 +01:00
pipewire.c modules/pipewire: change type of volume from uint8 to uint16 2023-01-16 10:29:16 +01:00
pulse.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
removables.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
river.c module/river: add support for ‘layout’ events 2023-01-12 18:15:16 +01:00
script.c script: fix buffer resize bug 2024-02-05 12:52:40 +01:00
sway-xkb.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
xkb.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00
xwindow.c module: const:ify ‘module’ argument to module->description() 2022-12-14 12:05:17 +01:00