mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Leave room for terminating nul byte, fixes bug #148
svn path=/trunk/; revision=7729
This commit is contained in:
parent
2ac3a79689
commit
71a41b519c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -624,7 +624,7 @@ GetVolumeInformationW(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wcsncpy (RootPathName, lpRootPathName, min(MAX_PATH, wcslen(lpRootPathName)));
|
wcsncpy (RootPathName, lpRootPathName, min(MAX_PATH, wcslen(lpRootPathName) + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
hFile = InternalOpenDirW(RootPathName, FALSE);
|
hFile = InternalOpenDirW(RootPathName, FALSE);
|
||||||
|
|
Loading…
Reference in a new issue