CryptoPkg/CrtLibSupport: fix strcpy
strcpy() returns a pointer to the destination string, AsciiStrCpyS() does not. So a simple #define does not work. Create a function instead. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
03951e5645
commit
fab6285a73
@@ -265,6 +265,16 @@ strcspn (
|
||||
return Count;
|
||||
}
|
||||
|
||||
char *
|
||||
strcpy (
|
||||
char *restrict strDest,
|
||||
const char *strSource
|
||||
)
|
||||
{
|
||||
AsciiStrCpyS (strDest, MAX_STRING_SIZE, strSource);
|
||||
return strDest;
|
||||
}
|
||||
|
||||
//
|
||||
// -- Character Classification Routines --
|
||||
//
|
||||
|
Reference in New Issue
Block a user