OSDN Git Service

tests/amdgpu: Fix buffer overflow (v3)
authorLuben Tuikov <luben.tuikov@amd.com>
Fri, 6 Dec 2019 03:02:28 +0000 (22:02 -0500)
committerLuben Tuikov <luben.tuikov@amd.com>
Wed, 8 Jan 2020 18:21:40 +0000 (13:21 -0500)
commitc9d4540bf6b94594432a1ed17119e500230d2cdb
treea7b38d2933a4138889fadb195115db4cb99708ff
parent29a5a85dae2ee6c14830e67d1356d4232f88df42
tests/amdgpu: Fix buffer overflow (v3)

This patch fixes the following warning:
-Wformat-overflow=

v2: Use the correct strlcat(3).
v3: Use strncat(3) and remove libbsd dependency.

Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
tests/amdgpu/ras_tests.c