drivers/fs/vfat/volume.c: fixed bug lines 88, 92 - wasn't copying null-terminator.

svn path=/trunk/; revision=5173
This commit is contained in:
Royce Mitchell III
2003-07-20 01:48:46 +00:00
parent 3a6b419266
commit 91c717d561
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,3 +1,8 @@
2003-07-18 Royce Mitchell III <[email protected]>
* drivers/fs/vfat/volume.c: fixed bug lines 88, 92 - wasn't copying
null-terminator.
2003-07-18 Royce Mitchell III <[email protected]>
* include/defines.h: added missing DISP_CHANGE_BADPARAM
+3 -3
View File
@@ -1,4 +1,4 @@
/* $Id: volume.c,v 1.17 2002/09/08 10:22:13 chorns Exp $
/* $Id: volume.c,v 1.18 2003/07/20 01:48:46 royce Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -85,11 +85,11 @@ FsdGetFsAttributeInformation(PDEVICE_EXTENSION DeviceExt,
FsAttributeInfo->FileSystemNameLength = Length;
if (DeviceExt->FatInfo.FatType == FAT32)
{
memcpy(FsAttributeInfo->FileSystemName, L"FAT32", 10);
memcpy(FsAttributeInfo->FileSystemName, L"FAT32\0", 12);
}
else
{
memcpy(FsAttributeInfo->FileSystemName, L"FAT", 6);
memcpy(FsAttributeInfo->FileSystemName, L"FAT\0", 8);
}
DPRINT("Finished FsdGetFsAttributeInformation()\n");