summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen7_cmd_buffer.c
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-10-23 15:27:51 +0100
committerEric Engestrom <[email protected]>2018-10-24 18:15:56 +0100
commited5d65a6a1a01f2b6227d461bcfb02642a1bb608 (patch)
tree83cf449d9937a9a7f95cc23c989642e54b286ff0 /src/intel/vulkan/gen7_cmd_buffer.c
parent33d757096dafd5e66f92e2a36e6855de6e8724d2 (diff)
anv: use snprintf() instead of memset()+strcpy()
snprintf() guarantees that it will not write more chars than allowed, and that the string will be null-terminated, without the need to fill the whole thing with zeroes to begin with. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/gen7_cmd_buffer.c')
0 files changed, 0 insertions, 0 deletions