Added a terminating 0 in vfatGetFCBForFile. Vfat has used the buggy implementation of wcsncpy.

svn path=/trunk/; revision=3917
This commit is contained in:
Hartmut Birr 2003-01-02 16:03:56 +00:00
parent c937cd4933
commit b3f5d3a6f8

View file

@ -1,4 +1,4 @@
/* $Id: fcb.c,v 1.23 2002/12/15 17:01:51 chorns Exp $
/* $Id: fcb.c,v 1.24 2003/01/02 16:03:56 hbirr Exp $
*
*
* FILE: fcb.c
@ -590,6 +590,7 @@ vfatGetFCBForFile (PDEVICE_EXTENSION pVCB,
currentElement = wcsrchr(pFileName, L'\\');
wcsncpy(pathName, pFileName, currentElement - pFileName);
pathName[currentElement - pFileName] = L'\0';
currentElement++;
FCB = vfatGrabFCBFromTable(pVCB, pathName);