mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
Added a terminating 0 in vfatGetFCBForFile. Vfat has used the buggy implementation of wcsncpy.
svn path=/trunk/; revision=3917
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user