From 71a41b519c653f0a0b16951fae5f4bcbce3baf26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 17 Jan 2004 23:04:28 +0000 Subject: [PATCH] Leave room for terminating nul byte, fixes bug #148 svn path=/trunk/; revision=7729 --- reactos/lib/kernel32/file/volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/kernel32/file/volume.c b/reactos/lib/kernel32/file/volume.c index d463c9e085d..438fdc8686c 100644 --- a/reactos/lib/kernel32/file/volume.c +++ b/reactos/lib/kernel32/file/volume.c @@ -1,4 +1,4 @@ -/* $Id: volume.c,v 1.35 2004/01/12 20:02:42 weiden Exp $ +/* $Id: volume.c,v 1.36 2004/01/17 23:04:28 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -624,7 +624,7 @@ GetVolumeInformationW( } else { - wcsncpy (RootPathName, lpRootPathName, min(MAX_PATH, wcslen(lpRootPathName))); + wcsncpy (RootPathName, lpRootPathName, min(MAX_PATH, wcslen(lpRootPathName) + 1)); } hFile = InternalOpenDirW(RootPathName, FALSE);