Skip to content

Conversation

@stauffer-garmin
Copy link
Contributor

strncpy gives an "output may be truncated" warning in newer versions of
GCC due to *pBuf being larger (100) than *pHeaderStr (16). Use memcpy
and explicitly null-terminate the target string.

This fixes issue #306.

strncpy gives an "output may be truncated" warning in newer versions of
GCC due to *pBuf being larger (100) than *pHeaderStr (16).  Use memcpy
and explicitly null-terminate the target string.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0ae04a6 on stauffer-garmin:master into adb7e7c on SRombauts:master.

@SRombauts SRombauts self-assigned this Nov 18, 2020
@SRombauts
Copy link
Owner

Looking good, thank you!

@SRombauts SRombauts merged commit 721b245 into SRombauts:master Nov 18, 2020
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.

3 participants