1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[dmenu] Fix small bug of passing right length.

This commit is contained in:
Dave Davenport 2022-04-23 23:17:51 +02:00
parent f5fce95330
commit 9314e75af2

View file

@ -220,7 +220,7 @@ static void read_input_sync(DmenuModePrivateData *pd, unsigned int pre_read) {
char *line = NULL;
while (pre_read > 0 &&
(nread = getdelim(&line, &len, pd->separator, pd->fd_file)) != -1) {
read_add(pd, line, len);
read_add(pd, line, nread);
pre_read--;
}
free(line);