monitor: assert monitor_puts()'s loop invariant
PATCH 1/1 monitor: assert monitor_puts()'s loop invariant
Chiefly to hush up Coverity.
Signed-off-by Markus Armbruster <[email protected]>
--- monitor.c | 1 + 1 file changed, 1 insertion(+)
monitor.c +1 -0
@@ -270,6 +270,7 @@ static void monitor_puts(Monitor *mon, const char *str)char c;for (;;) { +assert (mon->outbuf_index <sizeof (mon->outbuf) -1 ); c = *str++;if (c =='\0' )break ;
Signature · 1 line
1.7.11.7
Luiz Capitulino
AppliedQuoted 3 lines · On Thu, 10 Jan 2013 14:10:22 +0100 Markus Armbruster <[email protected]> wrote:
Chiefly to hush up Coverity.
Signed-off-by Markus Armbruster <[email protected]>
Applied to the qmp branch, thanks.
Quoted 16 lines
--- monitor.c | 1 + 1 file changed, 1 insertion(+)monitor.c +1
-0@@ -270,6 +270,7 @@ static void monitor_puts(Monitor *mon, const char *str)char c;for (;;) { +assert (mon->outbuf_index <sizeof (mon->outbuf) -1 ); c = *str++;if (c =='\0' )break ;