~foura/wired

6f2fd5526607692e2e800d0a1efa72ee92a6b138 — james palmer 11 months ago 47d3087
fix file descriptor leak in writemessage()
1 files changed, 1 insertions(+), 0 deletions(-)

M main.c
M main.c => main.c +1 -0
@@ 154,6 154,7 @@ writemessage(char *prefix, AWin *win)

		fprint(fd, "%s %s\n", prefix, buf);
	};
	close(fd);


	/* clear: use of buf here means nothing, the write is 0 bytes.