fix for last commit
This commit is contained in:
parent
4ff49faa89
commit
ca35888d87
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue