Skip to content

Commit

Permalink
IntelFrameworkModulePkg IsaFloppyDxe: Use safe string functions
Browse files Browse the repository at this point in the history
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <[email protected]>
Reviewed-by: Jeff Fan <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17732 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
hwu25 authored and hwu1225 committed Jun 30, 2015
1 parent 2aabd14 commit 35e471d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/ComponentName.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
UEFI Component Name(2) protocol implementation for Isa Floppy driver.
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
Expand Down Expand Up @@ -227,7 +227,7 @@ AddName (
CHAR16 FloppyDriveName[FLOPPY_DRIVE_NAME_LEN + 1];

if (!(FeaturePcdGet(PcdComponentNameDisable) && FeaturePcdGet(PcdComponentName2Disable))) {
StrCpy (FloppyDriveName, FLOPPY_DRIVE_NAME);
StrCpyS (FloppyDriveName, FLOPPY_DRIVE_NAME_LEN + 1, FLOPPY_DRIVE_NAME);
FloppyDriveName[FLOPPY_DRIVE_NAME_LEN - 1] = (CHAR16) (L'0' + FdcDev->Disk);

AddUnicodeString2 (
Expand Down

0 comments on commit 35e471d

Please sign in to comment.