Author: hbelusca
Date: Tue Jun 20 00:45:07 2017
New Revision: 75147
URL:
http://svn.reactos.org/svn/reactos?rev=75147&view=rev
Log:
[FILESYSTEMS]: Fix printf-like counted string specifiers.
Modified:
trunk/reactos/drivers/filesystems/cdfs/volinfo.c
trunk/reactos/drivers/filesystems/fastfat/volume.c
trunk/reactos/drivers/filesystems/ntfs/volinfo.c
Modified: trunk/reactos/drivers/filesystems/cdfs/volinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/v…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/volinfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/volinfo.c [iso-8859-1] Tue Jun 20 00:45:07
2017
@@ -49,7 +49,7 @@
DPRINT("Required length %lu\n", (sizeof(FILE_FS_VOLUME_INFORMATION) +
DeviceObject->Vpb->VolumeLabelLength));
DPRINT("LabelLength %hu\n", DeviceObject->Vpb->VolumeLabelLength);
- DPRINT("Label %*.S\n", DeviceObject->Vpb->VolumeLabelLength /
sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
+ DPRINT("Label %.*S\n", DeviceObject->Vpb->VolumeLabelLength /
sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
if (*BufferLength < sizeof(FILE_FS_VOLUME_INFORMATION))
return STATUS_INFO_LENGTH_MISMATCH;
Modified: trunk/reactos/drivers/filesystems/fastfat/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/volume.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/volume.c [iso-8859-1] Tue Jun 20 00:45:07
2017
@@ -32,7 +32,7 @@
DPRINT("Required length %lu\n", FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION,
VolumeLabel) + DeviceObject->Vpb->VolumeLabelLength);
DPRINT("LabelLength %hu\n", DeviceObject->Vpb->VolumeLabelLength);
- DPRINT("Label %*.S\n", DeviceObject->Vpb->VolumeLabelLength /
sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
+ DPRINT("Label %.*S\n", DeviceObject->Vpb->VolumeLabelLength /
sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
ASSERT(*BufferLength >= sizeof(FILE_FS_VOLUME_INFORMATION));
*BufferLength -= FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION, VolumeLabel);
Modified: trunk/reactos/drivers/filesystems/ntfs/volinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/v…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/volinfo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/volinfo.c [iso-8859-1] Tue Jun 20 00:45:07
2017
@@ -115,7 +115,7 @@
sizeof(FILE_FS_VOLUME_INFORMATION) +
DeviceObject->Vpb->VolumeLabelLength);
DPRINT("LabelLength %hu\n",
DeviceObject->Vpb->VolumeLabelLength);
- DPRINT("Label %*.S\n",
+ DPRINT("Label %.*S\n",
DeviceObject->Vpb->VolumeLabelLength / sizeof(WCHAR),
DeviceObject->Vpb->VolumeLabel);