commit 540a52b469e327266a889d610f13db8d7a0ee7d4
parent 1eb3779b37992943a957011251908fc5923ddae9
Author: Matsuda Kenji <contact2655@matsudakenji.xyz>
Date: Wed, 5 Oct 2022 20:18:52 +0900
update
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/dmenu.c b/dmenu.c
@@ -564,6 +564,11 @@ readstdin(void)
return;
}
+ if (passwd) {
+ inputw = lines = 0;
+ return;
+ }
+
/* read each line from stdin and add it to the item list */
for (i = 0; (len = getline(&line, &junk, stdin)) != -1; i++, line = NULL) {
if (i + 1 >= size / sizeof *items)