Home
last modified time | relevance | path

Searched hist:"07 a0283791e13e6dae41f26317885b0585fe5c4e" (Results 1 – 2 of 2) sorted by relevance

/libCEED/interface/
H A Dceed-qfunction.c07a0283791e13e6dae41f26317885b0585fe5c4e Thu Sep 19 00:41:32 UTC 2019 Jed Brown <jed@jedbrown.org> Clean up string processing code smells; -Wstringop-truncation

This pattern is detected by gcc-9 at high optimization:

warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
87 | strncpy(source_copy, source, strlen(source));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
H A Dceed.c07a0283791e13e6dae41f26317885b0585fe5c4e Thu Sep 19 00:41:32 UTC 2019 Jed Brown <jed@jedbrown.org> Clean up string processing code smells; -Wstringop-truncation

This pattern is detected by gcc-9 at high optimization:

warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
87 | strncpy(source_copy, source, strlen(source));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~