The buffer used in "Expecting reply" of dlm_tool lockdebug output is
used as C string (via printf %s) but not terminated with nul char.

Signed-off-by: Masatake YAMATO <yam...@redhat.com>
---
 dlm/tool/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlm/tool/main.c b/dlm/tool/main.c
index 4752008..a404be3 100644
--- a/dlm/tool/main.c
+++ b/dlm/tool/main.c
@@ -822,7 +822,7 @@ static void do_waiters(char *name, struct summary *sum)
                /* parse the resource name from the remainder of the line */
                j = 0;
                spaces = 0;
-
+               memset(rname, 0, sizeof(rname));
                for (i = 0; i < LOCK_LINE_MAX; i++) {
                        if (line[i] == '\n')
                                break;
-- 
1.7.11.7

Reply via email to