Skip to content

Commit 4ff49fa

Browse files
committed
fix for last commit
1 parent 0843d5b commit 4ff49fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render_ogl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static void ogl_build_programs()
255255
{
256256
char shader_path_tmp[MAX_PATH] = { 0 };
257257
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
258-
shader_path[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
258+
strncpy fix[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
259259

260260
if (strlen(shader_path_tmp) <= sizeof(shader_path_tmp) - 8)
261261
{

0 commit comments

Comments
 (0)