Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wordrec: Fix compiler warning (-Wstringop-truncation) (#1398)
gcc warning: wordrec/language_model.cpp:959:16: 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] memcpy could also be a little bit faster than strncpy. Signed-off-by: Stefan Weil <[email protected]>
- Loading branch information