d3dadapter9: use snprintf(..., "%s", ...) instead of strncpy
authorAndre Heider <a.heider@gmail.com>
Sun, 25 Nov 2018 09:49:59 +0000 (10:49 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Sat, 1 Dec 2018 20:32:53 +0000 (21:32 +0100)
commitb6f095f7ce2988045daf32e03f7a4ecc5fb466bb
treecfa0119f9e999cc830a0964a3ba183bb05c90cb4
parent37a2072e97af8f7f3143f0dc130a4e11a85c621a
d3dadapter9: use snprintf(..., "%s", ...) instead of strncpy

Fixes -Wstringop-truncation compiler warnings.
See f836d799f9066adf58f36 "intel/decoder: use snprintf(..., "%s", ...) instead of strncpy"

Signed-off-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/targets/d3dadapter9/description.c
src/gallium/targets/d3dadapter9/drm.c