commit | 75cdad558472781162a83439f3e6edb61d4d40e6 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Nov 28 22:07:30 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Wed Nov 28 22:07:30 2001 +0000 |
tree | d4c4d78f70a7e37860209ac8a2b9019d24b997cc | |
parent | 179c48c60e2476643863313ee0e0aa01bf338ad9 [diff] [blame] |
More sprintf -> PyOS_snprintf.
diff --git a/Modules/almodule.c b/Modules/almodule.c index 9e26081..e9b2114 100644 --- a/Modules/almodule.c +++ b/Modules/almodule.c
@@ -1519,7 +1519,8 @@ for (i = 0; i < npvs; i++) { if (pvs[i].sizeOut < 0) { char buf[32]; - sprintf(buf, "problem with param %d", i); + PyOS_snprintf(buf, sizeof(buf), + "problem with param %d", i); PyErr_SetString(ErrorObject, buf); goto error; }