diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2017-04-02 13:16:50 +0200 |
---|---|---|
committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2017-04-02 13:16:50 +0200 |
commit | 575b9345c87f22349c948fcc814c301816315a71 (patch) | |
tree | e67c6d741c3d1d6715812701965cf55944e2d236 /test/bg/exact/w/max | |
parent | a5e60401f9dce39f7f1bcf53ede508c63f5d2ad3 (diff) |
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: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'test/bg/exact/w/max')
0 files changed, 0 insertions, 0 deletions