1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

fix for last commit

This commit is contained in:
FunkyFr3sh 2024-12-10 20:53:01 +01:00
parent 4ff49faa89
commit ca35888d87

View File

@ -255,7 +255,7 @@ static void ogl_build_programs()
{
char shader_path_tmp[MAX_PATH] = { 0 };
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
strncpy fix[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
shader_path_tmp[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
if (strlen(shader_path_tmp) <= sizeof(shader_path_tmp) - 8)
{