mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
fix for last commit
This commit is contained in:
parent
0843d5b9fc
commit
4ff49faa89
@ -255,7 +255,7 @@ static void ogl_build_programs()
|
|||||||
{
|
{
|
||||||
char shader_path_tmp[MAX_PATH] = { 0 };
|
char shader_path_tmp[MAX_PATH] = { 0 };
|
||||||
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
|
strncpy(shader_path_tmp, shader_path, sizeof(shader_path_tmp));
|
||||||
shader_path[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
|
strncpy fix[sizeof(shader_path_tmp) - 1] = '\0'; /* strncpy fix */
|
||||||
|
|
||||||
if (strlen(shader_path_tmp) <= sizeof(shader_path_tmp) - 8)
|
if (strlen(shader_path_tmp) <= sizeof(shader_path_tmp) - 8)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user