Prevent sending empty line to engine after multi-leg move
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 27 Apr 2016 20:22:35 +0000 (22:22 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 8 May 2016 12:06:34 +0000 (14:06 +0200)
commit8b51ab06cfad0f352bf333955e62055a8c6a3da1
tree7dc5dd312de3943705f6465da45f4b166890175f
parentfd4699c26227714b63219850485e381be150f3dd
Prevent sending empty line to engine after multi-leg move

As the pmoves are stored internally with a linefeed suffixed to them,
this linefeed was mistaken for a promotion character in the multi-leg
printing formats, and led to an extra empty line being sent to the
engine on non-promotion multi-leg moves. Now a linefeed is replaced
by a null character before sending the move.
backend.c