summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/Application/IfConfig6/IfConfig6.c
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkPkg/Application/IfConfig6/IfConfig6.c')
-rw-r--r--NetworkPkg/Application/IfConfig6/IfConfig6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/NetworkPkg/Application/IfConfig6/IfConfig6.c b/NetworkPkg/Application/IfConfig6/IfConfig6.c
index 36cc749933..9e228ca7bc 100644
--- a/NetworkPkg/Application/IfConfig6/IfConfig6.c
+++ b/NetworkPkg/Application/IfConfig6/IfConfig6.c
@@ -136,7 +136,7 @@ SplitStrToList (
//
Str = (CHAR16 *) AllocateZeroPool (StrSize (String));
ASSERT (Str != NULL);
- Str = StrCpy (Str, String);
+ Str = StrnCpy (Str, String, StrLen (String));
ArgStr = Str;
//
@@ -1720,7 +1720,7 @@ IfConfig6Initialize (
Str = (CHAR16 *) AllocateZeroPool (StrSize (ValueStr));
ASSERT (Str != NULL);
- Str = StrCpy (Str, ValueStr);
+ Str = StrnCpy (Str, ValueStr, StrLen (ValueStr));
Private->IfName = Str;
}
}
@@ -1734,7 +1734,7 @@ IfConfig6Initialize (
Str = (CHAR16 *) AllocateZeroPool (StrSize (ValueStr));
ASSERT (Str != NULL);
- Str = StrCpy (Str, ValueStr);
+ Str = StrnCpy (Str, ValueStr, StrLen (ValueStr));
Private->IfName = Str;
}
}