Commit becec522 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Use snprintf() in shader_arb_request_a0() (Coverity).

parent f51f911a
......@@ -987,9 +987,10 @@ static void shader_arb_request_a0(const struct wined3d_shader_instruction *ins,
struct shader_arb_ctx_priv *priv = ins->ctx->backend_data;
struct wined3d_string_buffer *buffer = ins->ctx->buffer;
if (!strcmp(priv->addr_reg, src)) return;
if (!strcmp(priv->addr_reg, src))
return;
strcpy(priv->addr_reg, src);
snprintf(priv->addr_reg, sizeof(priv->addr_reg), "%s", src);
shader_addline(buffer, "ARL A0.x, %s;\n", src);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment