gallium/hud: avoid buffer overrun
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sat, 14 Jan 2017 23:28:54 +0000 (00:28 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 16 Jan 2017 17:07:08 +0000 (18:07 +0100)
commit8daf6de3deddef8f71f8b1af61b12cd8cb783433
tree49085a79b0d2588576be988ab83932cba1cbeda6
parent0d9a4efce9c7503544fb828b225ea32a11bc799b
gallium/hud: avoid buffer overrun

Renaming data sources was added in
e8bb97ce30051b999a4a69c9b27884daeb8d71e6
It was possible to use a new name longer than
the name array in hud_graph of 128. This
patch truncates the name to fit the array.

CC: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/hud/hud_context.c