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

Drop confusing commented out strncpy in pystrtod.c #6072

Merged
merged 1 commit into from
Mar 11, 2018
Merged

Drop confusing commented out strncpy in pystrtod.c #6072

merged 1 commit into from
Mar 11, 2018

Conversation

siddhesh
Copy link
Contributor

Commit efd2bac1 commented out strncpy to fix a gcc 8 warning. Remove
the commented out code to avoid confusion[1].

[1] https://mail.python.org/pipermail/python-dev/2018-March/152342.html

Commit efd2bac1 commented out strncpy to fix a gcc 8 warning.  Remove
the commented out code to avoid confusion[1].

[1] https://mail.python.org/pipermail/python-dev/2018-March/152342.html
@zhangyangyu zhangyangyu changed the title [skip-news][skip-issue] Drop commented out strncpy Drop confusing commented out strncpy in pystrtod.c Mar 11, 2018
@zhangyangyu zhangyangyu merged commit 9fb8415 into python:master Mar 11, 2018
jo2y pushed a commit to jo2y/cpython that referenced this pull request Mar 23, 2018
vstinner added a commit that referenced this pull request Sep 26, 2018
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);

(cherry picked from commit 9fb8415)
vstinner added a commit that referenced this pull request Sep 26, 2018
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);

(cherry picked from commit 9fb8415)
vstinner added a commit that referenced this pull request Sep 26, 2018
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);

(cherry picked from commit 9fb8415)
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