On 12/31/20 11:26 AM, Ilias Apalodimas wrote:
Although the function description states the caller must provide a
sufficient buffer, it's better to have in function checks that the
destination buffer can hold the intended value.

So let's add an extra argument with the buffer size and check that
before doing any copying.

Signed-off-by: Ilias Apalodimas <[email protected]>

Reviewed-by: Heinrich Schuchardt <[email protected]>

Reply via email to