mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Use PyOS_snprintf instead of sprintf.
This commit is contained in:
parent
ef58b31991
commit
518ab1c02a
13 changed files with 45 additions and 39 deletions
|
@ -44,7 +44,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
|
|||
dl_funcptr p = NULL;
|
||||
char funcname[258];
|
||||
|
||||
sprintf(funcname, "_init%.200s", shortname);
|
||||
PyOS_snprintf(funcname, sizeof(funcname), "_init%.200s", shortname);
|
||||
|
||||
#ifdef USE_RLD
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue