More sprintf -> PyOS_snprintf.
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c
index 3c5de2b..54d444f 100644
--- a/Modules/stropmodule.c
+++ b/Modules/stropmodule.c
@@ -778,7 +778,8 @@
return NULL;
}
else if (errno != 0) {
- sprintf(buffer, "atoi() literal too large: %.200s", s);
+ PyOS_snprintf(buffer, sizeof(buffer),
+ "atoi() literal too large: %.200s", s);
PyErr_SetString(PyExc_ValueError, buffer);
return NULL;
}
@@ -828,7 +829,8 @@
while (*end && isspace(Py_CHARMASK(*end)))
end++;
if (*end != '\0') {
- sprintf(buffer, "invalid literal for atol(): %.200s", s);
+ PyOS_snprintf(buffer, sizeof(buffer),
+ "invalid literal for atol(): %.200s", s);
PyErr_SetString(PyExc_ValueError, buffer);
Py_DECREF(x);
return NULL;