From cfa4170c648d745adeb56aa76de78489603f9997 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 9 Jan 2016 03:01:25 +0100 Subject: [PATCH] (D3D) N/A --- gfx/d3d/d3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 8289200fc8..7590ab1914 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -713,7 +713,7 @@ static bool d3d_construct(d3d_video_t *d3d, enum rarch_shader_type type = video_shader_parse_type(settings->video.shader_path, RARCH_SHADER_NONE); if (settings->video.shader_enable && type == RARCH_SHADER_CG) - d3d->shader_path = settings->video.shader_path; + strlcpy(d3d->shader_path, settings->video.shader_path, sizeof(d3d->shader_path)); if (!d3d_process_shader(d3d)) return false;