summaryrefslogtreecommitdiffstats
path: root/Modules/getbuildinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/getbuildinfo.c')
-rw-r--r--Modules/getbuildinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index a4e9977..b59d9a7 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -1,4 +1,4 @@
-#include "pyconfig.h"
+#include "Python.h"
#ifdef macintosh
#include "macbuildno.h"
@@ -33,6 +33,7 @@ const char *
Py_GetBuildInfo(void)
{
static char buildinfo[50];
- sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
+ PyOS_snprintf(buildinfo, sizeof(buildinfo),
+ "#%d, %.20s, %.9s", BUILD, DATE, TIME);
return buildinfo;
}