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

From: Gabriel Krisman Bertazi
Date: Tue May 28 2019 - 13:51:19 EST


"Gustavo A. R. Silva" <gustavo@xxxxxxxxxxxxxx> 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 string
> unterminated."
>
> Notice that, unlike strncpy(), strscpy() always null-terminates the
> destination string.
>

Thanks, I'll get this queued up.

--
Gabriel Krisman Bertazi