wined3d: Use a printf format specifier to avoid a compiler warning [-Wformat-security]

Józef Kucia joseph.kucia at gmail.com
Thu Mar 10 00:51:25 CST 2016


On Thu, Mar 10, 2016 at 7:46 AM, Hugh McMaster
<hugh.mcmaster at outlook.com> wrote:
> Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
> ---
>  dlls/wined3d/glsl_shader.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
> index 85244c8..8b0f617 100644
> --- a/dlls/wined3d/glsl_shader.c
> +++ b/dlls/wined3d/glsl_shader.c
> @@ -342,7 +342,7 @@ static void shader_glsl_append_imm_ivec(struct wined3d_string_buffer *buffer,
>      if (size > 1)
>          shader_addline(buffer, "ivec%u(%s%s%s%s)", size, str[0], str[1], str[2], str[3]);
>      else
> -        shader_addline(buffer, str[0]);
> +        shader_addline(buffer, "%s", str[0]);
>  }
>
>  static const char *get_info_log_line(const char **ptr)
> --
> 1.9.1
>
>
>

This should be fixed by 120126
(https://www.winehq.org/pipermail/wine-patches/2016-March/148053.html).



More information about the wine-devel mailing list