Re: [PATCH] unicode: replace strncpy() by strscpy()

2019-05-28 Thread Gabriel Krisman Bertazi
"Gustavo A. R. Silva" writes: > The strncpy() function is being deprecated. Replace it by the safer > strscpy() and fix the following Coverity warning: > > "Calling strncpy with a maximum size argument of 12 bytes on destination > array version_string of size 12 bytes might leave the destination

[PATCH] unicode: replace strncpy() by strscpy()

2019-05-27 Thread Gustavo A. R. Silva
The strncpy() function is being deprecated. Replace it by the safer strscpy() and fix the following Coverity warning: "Calling strncpy with a maximum size argument of 12 bytes on destination array version_string of size 12 bytes might leave the destination string unterminated." Notice that,