]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/Include/CrtLibSupport.h
CryptoPkg/CrtLibSupport: fix strcpy
[mirror_edk2.git] / CryptoPkg / Library / Include / CrtLibSupport.h
index 287d7f76bfb3dbe166db73b716391b06f8a74ebf..bdc2654b6eefa4d2a13bd8a87ab72b1d69698840 100644 (file)
@@ -395,6 +395,12 @@ inet_pton   (
   void *\r
   );\r
 \r
+char *\r
+strcpy (\r
+  char *restrict  strDest,\r
+  const char      *strSource\r
+  );\r
+\r
 //\r
 // Macros that directly map functions to BaseLib, BaseMemoryLib, and DebugLib functions\r
 //\r
@@ -404,7 +410,6 @@ inet_pton   (
 #define memcmp(buf1, buf2, count)           (int)(CompareMem(buf1,buf2,(UINTN)(count)))\r
 #define memmove(dest, source, count)        CopyMem(dest,source,(UINTN)(count))\r
 #define strlen(str)                         (size_t)(AsciiStrnLenS(str,MAX_STRING_SIZE))\r
-#define strcpy(strDest, strSource)          AsciiStrCpyS(strDest,MAX_STRING_SIZE,strSource)\r
 #define strncpy(strDest, strSource, count)  AsciiStrnCpyS(strDest,MAX_STRING_SIZE,strSource,(UINTN)count)\r
 #define strcat(strDest, strSource)          AsciiStrCatS(strDest,MAX_STRING_SIZE,strSource)\r
 #define strncmp(string1, string2, count)    (int)(AsciiStrnCmp(string1,string2,(UINTN)(count)))\r