commit | 517823449ebe8e3758b86c441cc74968b68e6491 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Thu Jan 10 14:10:22 2013 +0100 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Thu Jan 10 14:47:56 2013 -0200 |
tree | f5308c968185dfc4d0c0f962313345925b352275 | |
parent | 6ad53bdf5830bfc30221aee8d4ced9a9eaf8fe03 [diff] [blame] |
monitor: assert monitor_puts()'s loop invariant Chiefly to hush up Coverity. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
diff --git a/monitor.c b/monitor.c index 9cf419b..c6eac60 100644 --- a/monitor.c +++ b/monitor.c
@@ -270,6 +270,7 @@ char c; for(;;) { + assert(mon->outbuf_index < sizeof(mon->outbuf) - 1); c = *str++; if (c == '\0') break;