[Mesa-dev] [PATCH 08/17] loader: Fix compiler warnings about truncating the PCI ID path.

Emil Velikov emil.l.velikov at gmail.com
Tue Feb 13 14:17:17 UTC 2018

On 10 February 2018 at 16:33, Eric Anholt <eric at anholt.net> wrote:
> My build was producing:
> ../src/loader/loader.c:121:67: warning: ā€˜%1uā€™ directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Wformat-truncation=]
> and we can avoid this careful calculation by just using asprintf (as we do
> elsewhere in the file).
>From vague memory - some strange platforms were missing asprintf.
But since we already use it throughout (the file and mesa) everything
should be fine.

Reviewed-by: Emil Velikov <emil.velikov at collabora.com>


More information about the mesa-dev mailing list