mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-02-10 02:10:52 +00:00
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:
commit
b110546eee
1 changed files with 1 additions and 1 deletions
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in a new issue