From: Marek Olšák Date: Sun, 2 Aug 2015 16:11:09 +0000 (+0200) Subject: gallium/hud: fix printing % next to panes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e2a3e0376ca4fe39ca05e80557edfaa12e93e2b;p=mesa.git gallium/hud: fix printing % next to panes Reviewed-by: Samuel Pitoiset Reviewed-by: Brian Paul Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index d3ad271f515..275070d1664 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -332,7 +332,7 @@ hud_pane_accumulate_vertices(struct hud_context *hud, number_to_human_readable(pane->max_value * i / 5, pane->type, str); - hud_draw_string(hud, x, y, str); + hud_draw_string(hud, x, y, "%s", str); } /* draw info below the pane */