Merge pull request #527 from Pan7/fixStrncat

Fix warning the value of the size argument in strncat is too large
This commit is contained in:
Timothee "TTimo" Besset 2017-07-11 10:45:44 +02:00 committed by GitHub
commit b110546eee
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ void FillTextureList( GSList** pArray )
colon = strstr( (char*)l_shaderfiles->data, ":" );
if( colon )
{
strncat( shaderfile, colon, sizeof( shaderfile ) );
strncat( shaderfile, colon, sizeof( shaderfile ) - strlen( shaderfile ) - 1 );
}
for ( GSList *tmp = texdirs; tmp; tmp = g_slist_next( tmp ) )