diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-11-28 20:27:42 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-11-28 20:27:42 +0000 |
commit | 885d457709c1d680c899dc3d035a47c8fb514cfa (patch) | |
tree | d16b3a6f89208a1b46b786958a316ef9075d3fab /Modules/_localemodule.c | |
parent | 05bd787c6cd55f29d43465de621778221e0fc46e (diff) | |
download | cpython-git-885d457709c1d680c899dc3d035a47c8fb514cfa.tar.gz |
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/_localemodule.c')
-rw-r--r-- | Modules/_localemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 61a5c7c883..d96a96784d 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -376,7 +376,7 @@ PyLocale_getdefaultlocale(PyObject* self, PyObject* args) if (!PyArg_NoArgs(args)) return NULL; - sprintf(encoding, "cp%d", GetACP()); + PyOS_snprintf(encoding, sizeof(encoding), "cp%d", GetACP()); if (GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SISO639LANGNAME, |