diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-21 22:44:57 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-03-21 22:44:57 +0100 |
| commit | 7e0ace1f1e5334f13580facb53c253c94c6913f6 (patch) | |
| tree | 4402dc23367ba034bc40fe875ddd932d35a0553b /dmenu-wl.c | |
| parent | b4ba1c81698f91edf94c728677eba9de59f022f4 (diff) | |
add dmenu-wl_run and dmenu_path and config.mk
Diffstat (limited to 'dmenu-wl.c')
| -rw-r--r-- | dmenu-wl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -425,8 +425,7 @@ readstdin() char *buf = malloc(MAX_LINE_LENGTH); Option *option; - while (fgets(buf, MAX_LINE_LENGTH, stdin) != 0) { - ++numitems; + for (;fgets(buf, MAX_LINE_LENGTH, stdin) != 0; ++numitems) { option = malloc(sizeof(Option)); option->name = buf; s = strlen(option->name); |