diff options
| author | cvs2svn <tools@python.org> | 2001-12-28 04:27:46 (GMT) |
|---|---|---|
| committer | cvs2svn <tools@python.org> | 2001-12-28 04:27:46 (GMT) |
| commit | 22768184cbbaa4bd6083c51c28183be7f4fc3d69 (patch) | |
| tree | 38c0e4c1fcb64ef631a5737ca9bf469263e98be9 /Python | |
| parent | bec5b362db9848e291219539a466b9e2c5fcbe25 (diff) | |
| download | cpython-22768184cbbaa4bd6083c51c28183be7f4fc3d69.zip cpython-22768184cbbaa4bd6083c51c28183be7f4fc3d69.tar.gz cpython-22768184cbbaa4bd6083c51c28183be7f4fc3d69.tar.bz2 | |
This commit was manufactured by cvs2svn to create branch
'release22-maint'.
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/mysnprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/mysnprintf.c b/Python/mysnprintf.c index e3b72de..4d3770d 100644 --- a/Python/mysnprintf.c +++ b/Python/mysnprintf.c @@ -65,7 +65,7 @@ PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va) len = vsnprintf(str, size, format, va); #else /* Emulate it. */ - buffer = PyMem_Malloc(size + 512); + buffer = PyMem_MALLOC(size + 512); if (buffer == NULL) { len = -666; goto Done; @@ -85,7 +85,7 @@ PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va) memcpy(str, buffer, to_copy); str[to_copy] = '\0'; } - PyMem_Free(buffer); + PyMem_FREE(buffer); Done: #endif str[size-1] = '\0'; |
