Skip to content
Snippets Groups Projects
Commit 065f7f79 authored by Adam Borowski's avatar Adam Borowski
Browse files

examples: pmemobjfs: fix a string copying corruption

As usually, any use of strncpy() for a C string is a bug.  In this
case, it will never null-terminate the string, then if the malloced
buffer isn't zeroed, the strncat() will skip over some garbage.

Found by gcc-9's new warnings, just enabled in dpkg-buildflags.
parent f333b5ad
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment