LIB_ID: change strcpy() to strncpy() for safety
This commit is contained in:
parent
e62db2841a
commit
aff350f593
|
@ -97,7 +97,7 @@ static int okRevision( const UTF8& aField )
|
|||
|
||||
if( aField.size() >= 4 )
|
||||
{
|
||||
strcpy( rev, "x/" );
|
||||
strncpy( rev, "x/", sizeof( rev ) );
|
||||
strncat( rev, aField.c_str(), sizeof(rev)-strlen(rev)-1 );
|
||||
|
||||
if( EndsWithRev( rev, rev + strlen(rev), '/' ) == rev+2 )
|
||||
|
|
Loading…
Reference in New Issue