summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-12 14:29:48 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-12 14:29:48 +0200
commite7ed9c7bd2204dd48d67eb7b14813c0338a85a0c (patch)
treefdcf7d7cba9df4da905bfc99dd42ddc7cfe15138 /Python/strdup.c
parent4a994ab2dc58b8fd66549ea28eb489e8009d19d7 (diff)
parent5f7236d4e16f4f4eee4da97621a6f8a225dfba4e (diff)
downloadcpython-e7ed9c7bd2204dd48d67eb7b14813c0338a85a0c.tar.gz
Issue #28648: Fixed crash in Py_DecodeLocale() in debug build on Mac OS X
when decode astral characters.
Diffstat (limited to 'Python/strdup.c')
-rw-r--r--Python/strdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/strdup.c b/Python/strdup.c
index 20187e0f0a..769d3db130 100644
--- a/Python/strdup.c
+++ b/Python/strdup.c
@@ -6,7 +6,7 @@ char *
strdup(const char *str)
{
if (str != NULL) {
- register char *copy = malloc(strlen(str) + 1);
+ char *copy = malloc(strlen(str) + 1);
if (copy != NULL)
return strcpy(copy, str);
}