From 91c717d561209fca7dd571d255a789e6219d7029 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Sun, 20 Jul 2003 01:48:46 +0000 Subject: [PATCH] drivers/fs/vfat/volume.c: fixed bug lines 88, 92 - wasn't copying null-terminator. svn path=/trunk/; revision=5173 --- reactos/ChangeLog | 5 +++++ reactos/drivers/fs/vfat/volume.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/reactos/ChangeLog b/reactos/ChangeLog index fd46a347e71..09cf680d45e 100644 --- a/reactos/ChangeLog +++ b/reactos/ChangeLog @@ -1,3 +1,8 @@ +2003-07-18 Royce Mitchell III + + * drivers/fs/vfat/volume.c: fixed bug lines 88, 92 - wasn't copying + null-terminator. + 2003-07-18 Royce Mitchell III * include/defines.h: added missing DISP_CHANGE_BADPARAM diff --git a/reactos/drivers/fs/vfat/volume.c b/reactos/drivers/fs/vfat/volume.c index e84d3769235..b0b086edfa8 100644 --- a/reactos/drivers/fs/vfat/volume.c +++ b/reactos/drivers/fs/vfat/volume.c @@ -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");