Skip to content
Snippets Groups Projects
Commit 575b9345 authored by Tobias Stoeckmann's avatar Tobias Stoeckmann
Browse files

Always terminate strncpy results with '\0'.


The strncpy function does not guarantee to end the resulting character
sequence with a terminating nul character if not enough space is
available. This could be triggered by supplying a sufficiently long
output_file option.

Signed-off-by: default avatarTobias Stoeckmann <tobias@stoeckmann.org>
parent a5e60401
No related branches found
No related tags found
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