Re: [Mesa-dev] [PATCH mesa] anv: use snprintf() instead of memset()+strcpy()

2018-10-23 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 23/10/2018 15:31, Eric Engestrom wrote: 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 ---

[Mesa-dev] [PATCH mesa] anv: use snprintf() instead of memset()+strcpy()

2018-10-23 Thread Eric Engestrom
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 --- src/intel/vulkan/anv_device.c | 7 +++ 1 file changed, 3 insertions(+), 4