ui/ncurses: specify a fixed length for status messages
authorJeremy Kerr <jk@ozlabs.org>
Mon, 5 May 2014 03:45:16 +0000 (11:45 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 16 Jul 2014 00:47:46 +0000 (08:47 +0800)
commit71f338ca02092cb75608a511d6885affaf7adb66
tree4df90580b21c402dd974aaa1018fc1de6cae30d0
parent49367fdd5034a010a3f7f657f8ad205ebf9a01fe
ui/ncurses: specify a fixed length for status messages

Incoming status messages can be an arbitrary length; if so, the status
line may be corrupt.

This change uses the 'n' variant of mvwaddnstr(), so we only write one
line of characters.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-scr.c