Messages in this thread | | | From | Gabriel Krisman Bertazi <> | Subject | Re: [PATCH] unicode: replace strncpy() by strscpy() | Date | Tue, 28 May 2019 13:47:49 -0400 |
| |
"Gustavo A. R. Silva" <gustavo@embeddedor.com> 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
| |