Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
viewer: Fix some compiler warnings (-Wstringop-truncation) (#1399)
gcc warnings: viewer/scrollview.cpp:72:10: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] viewer/scrollview.cpp:118:14: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=] viewer/scrollview.cpp:746:10: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] viewer/scrollview.cpp:830:10: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] Signed-off-by: Stefan Weil <[email protected]>
- Loading branch information