summaryrefslogtreecommitdiffstats
path: root/Python/dynload_next.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-11-28 20:42:20 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-11-28 20:42:20 (GMT)
commit518ab1c02a01a1a502fedeccb62ea73f2a952ba7 (patch)
tree4fd0238c7960f0001e8b576656acbbbe0947053e /Python/dynload_next.c
parentef58b319916f6cf2034acc40b411f8405f20416f (diff)
downloadcpython-518ab1c02a01a1a502fedeccb62ea73f2a952ba7.zip
cpython-518ab1c02a01a1a502fedeccb62ea73f2a952ba7.tar.gz
cpython-518ab1c02a01a1a502fedeccb62ea73f2a952ba7.tar.bz2
Use PyOS_snprintf instead of sprintf.
Diffstat (limited to 'Python/dynload_next.c')
-rw-r--r--Python/dynload_next.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_next.c b/Python/dynload_next.c
index 2b34315..671b26f 100644
--- a/Python/dynload_next.c
+++ b/Python/dynload_next.c
@@ -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
{