diff options
author | Vinson Lee <[email protected]> | 2010-02-19 23:53:27 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-19 23:53:27 -0800 |
commit | a45f2ec7b7e929d705df23471ee92f05e233338c (patch) | |
tree | 7b8260562a37b0b1ff44379fe8d163cec7e90a9f /src/mesa/shader/prog_print.c | |
parent | 150cce6aef85d22b5d32fba5d27605a98be6794a (diff) |
mesa: Silence compiler format warning.
Diffstat (limited to 'src/mesa/shader/prog_print.c')
-rw-r--r-- | src/mesa/shader/prog_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |