1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -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; char *line = NULL;
while (pre_read > 0 && while (pre_read > 0 &&
(nread = getdelim(&line, &len, pd->separator, pd->fd_file)) != -1) { (nread = getdelim(&line, &len, pd->separator, pd->fd_file)) != -1) {
read_add(pd, line, len); read_add(pd, line, nread);
pre_read--; pre_read--;
} }
free(line); free(line);