[Mesa-dev] [PATCH 05/11] gallium/hud: fix printing % next to panes
Marek Olšák
maraeo at gmail.com
Mon Aug 3 05:42:07 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/auxiliary/hud/hud_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index d3ad271..275070d 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 */
--
2.1.4
More information about the mesa-dev
mailing list