
31 Dec
2020
31 Dec
'20
1:04 p.m.
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 ilias.apalodimas@linaro.org
Reviewed-by: Heinrich Schuchardt xypron.glpk@gmx.de