]> granicus.if.org Git - nethack/commit
Don't try to write a zero-length message
authorPasi Kallinen <paxed@alt.org>
Mon, 21 Jan 2019 09:54:03 +0000 (11:54 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 21 Jan 2019 09:56:19 +0000 (11:56 +0200)
commitf6b9dc7d681390c0cbd4319053c9a59d1fd8a8fc
treec611f4ace23db38d3158c98bca9a16dd4a381247
parent77bc07f579290eefbfeb946a786e73715fcd21bd
Don't try to write a zero-length message

If the message history contains a zero-length message line, skip it,
as trying to write a zero-length string will make bwrite panic.

Happened only on X11. This is post-3.6.1 bug.
src/save.c