mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00: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:
parent
c937cd4933
commit
b3f5d3a6f8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue