Skip to content

Drop confusing commented out strncpy in pystrtod.c#6072

Merged
zhangyangyu merged 1 commit into
python:masterfrom
siddhesh:trivial
Mar 11, 2018
Merged

Drop confusing commented out strncpy in pystrtod.c#6072
zhangyangyu merged 1 commit into
python:masterfrom
siddhesh:trivial

Conversation

@siddhesh

Copy link
Copy Markdown
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