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:
parent
4ff49faa89
commit
ca35888d87
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user