Re: [hackers] [dmenu][PATCH] fix: Do not crash on e.g. dmenu < /dev/null

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Tue, 28 Jun 2016 10:01:44 +0200

S. Gilles wrote:
> _AT_@ -480,7 +480,7 @@ readstdin(void)
> }
> if (items)
> items[i].text = NULL;
> - inputw = TEXTW(items[imax].text);
> + inputw = items ? TEXTW(items[imax].text) : 0;
> lines = MIN(lines, i);
> }

Heyho,

Nice catch! I didn't notice that regression in my last patch.

--Markus
Received on Tue Jun 28 2016 - 10:01:44 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 28 2016 - 10:12:15 CEST