From 59ca80cb3d957f6a4639a8bacf7d1915ce30c7f2 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 13 May 2014 13:42:34 +0200 Subject: [PATCH] wmiutils: Always null-terminate the server string in build_server (valgrind). --- dlls/wmiutils/path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wmiutils/path.c b/dlls/wmiutils/path.c index b2b4945aca4..79774160d34 100644 --- a/dlls/wmiutils/path.c +++ b/dlls/wmiutils/path.c @@ -582,6 +582,7 @@ static WCHAR *build_server( struct path *path, int *len ) { p[0] = p[1] = '\\'; p[2] = '.'; + p[3] = 0; } return ret; }