[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8536kympx6.fsf@collabora.com>
Date: Tue, 28 May 2019 13:47:49 -0400
From: Gabriel Krisman Bertazi <krisman@...labora.com>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] unicode: replace strncpy() by strscpy()
"Gustavo A. R. Silva" <gustavo@...eddedor.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
Powered by blists - more mailing lists