Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.7] Drop confusing commented out code in pystrtod.c (GH-6072) #9588

Merged
merged 1 commit into from
Sep 26, 2018
Merged

[2.7] Drop confusing commented out code in pystrtod.c (GH-6072) #9588

merged 1 commit into from
Sep 26, 2018

Conversation

vstinner
Copy link
Member

(cherry picked from commit 9fb8415)

@vstinner
Copy link
Member Author

Fix the following warning:

Python/pystrtod.c: In function 'format_float_short':
Python/pystrtod.c:1007:13: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
             strncpy(p, "ERR", 3);

@vstinner vstinner merged commit 911231e into python:2.7 Sep 26, 2018
@vstinner vstinner deleted the pystrtod27 branch September 26, 2018 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants