Re: [Mesa-dev] [PATCH shader-db] run: simplify filename handling

2018-08-10 Thread Lionel Landwerlin
Maybe set out_filename = NULL (might not be initialized on Linux by default, according to manpage). Either way : Reviewed-by: Lionel Landwerlin On 10/08/18 13:21, Eric Engestrom wrote: Compiler wasn't happy about strncpy() depending on the source's length and not the target's, but this whole

[Mesa-dev] [PATCH shader-db] run: simplify filename handling

2018-08-10 Thread Eric Engestrom
Compiler wasn't happy about strncpy() depending on the source's length and not the target's, but this whole thing can be simplified by simply using asprintf() (which is already used in this file, so no #include necessary). run.c: In function ‘main._omp_fn.0’: run.c:964:21: warning: ‘strncpy’ speci