]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenVtf/GenVtf.c
BaseTools/GenVtf: silence false "stringop-overflow" warning with memcpy()
[mirror_edk2.git] / BaseTools / Source / C / GenVtf / GenVtf.c
index 65ae08eeceb80482497952c84d13fec60c2b04a3..fc7ae02203ff9716133f65c46bab7401eb086dec 100644 (file)
@@ -129,9 +129,9 @@ Returns:
   } else {\r
     Length = strlen(Str);\r
     if (Length < 4) {\r
-      strncpy (TemStr + 4 - Length, Str, Length);\r
+      memcpy (TemStr + 4 - Length, Str, Length);\r
     } else {\r
-      strncpy (TemStr, Str + Length - 4, 4);\r
+      memcpy (TemStr, Str + Length - 4, 4);\r
     }\r
   \r
     sscanf (\r