From a45f2ec7b7e929d705df23471ee92f05e233338c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 19 Feb 2010 23:53:27 -0800 Subject: [PATCH] mesa: Silence compiler format warning. --- src/mesa/shader/prog_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 0af70af9ad9..765aa003b76 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -308,7 +308,7 @@ reg_string(gl_register_file f, GLint index, gl_prog_print_mode mode, struct gl_program_parameter *param = prog->Parameters->Parameters + index; char *state = _mesa_program_state_string(param->StateIndexes); - sprintf(str, state); + sprintf(str, "%s", state); free(state); } break; -- 2.30.2