diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2014-09-17 13:19:01 +0800 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2014-09-17 13:19:01 +0800 |
commit | ebf0eb89938ef3da56660bb4b8e043d73311d5f4 (patch) | |
tree | ceb9977286425825740876df5d7349e19f131c38 /Python/strdup.c | |
parent | 8f9f5f2448be5f6d261011e2cf16ce1d9e733fc4 (diff) | |
parent | 7512258fade04669b3fa38b313372fbd2c04cf47 (diff) | |
download | cpython-ebf0eb89938ef3da56660bb4b8e043d73311d5f4.tar.gz |
Merge from 3.3
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
Diffstat (limited to 'Python/strdup.c')
-rw-r--r-- | Python/strdup.c | 2 |
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); } |