diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-11-28 20:27:42 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-11-28 20:27:42 (GMT) |
commit | 885d457709c1d680c899dc3d035a47c8fb514cfa (patch) | |
tree | d16b3a6f89208a1b46b786958a316ef9075d3fab /Modules/flmodule.c | |
parent | 05bd787c6cd55f29d43465de621778221e0fc46e (diff) | |
download | cpython-885d457709c1d680c899dc3d035a47c8fb514cfa.zip cpython-885d457709c1d680c899dc3d035a47c8fb514cfa.tar.gz cpython-885d457709c1d680c899dc3d035a47c8fb514cfa.tar.bz2 |
sprintf -> PyOS_snprintf in some "obviously safe" cases.
Also changed <>-style #includes to ""-style in some places where the
former didn't make sense.
Diffstat (limited to 'Modules/flmodule.c')
-rw-r--r-- | Modules/flmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c index ef853f5..25037bf 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -370,8 +370,8 @@ static PyObject * generic_repr(genericobject *g) { char buf[100]; - sprintf(buf, "<FORMS_object at %p, objclass=%d>", - g, g->ob_generic->objclass); + PyOS_snprintf(buf, sizeof(buf), "<FORMS_object at %p, objclass=%d>", + g, g->ob_generic->objclass); return PyString_FromString(buf); } @@ -1580,8 +1580,8 @@ static PyObject * form_repr(formobject *f) { char buf[100]; - sprintf(buf, "<FORMS_form at %p, window=%ld>", - f, f->ob_form->window); + PyOS_snprintf(buf, sizeof(buf), "<FORMS_form at %p, window=%ld>", + f, f->ob_form->window); return PyString_FromString(buf); } |