Skip to content

Commit 4bab269

Browse files
starseekercshorler
authored andcommitted
strcpy -> strncpy
1 parent efd3538 commit 4bab269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exp2cxx/expressbuild.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ void ComplexList::addImplicitSubs( Linked_List subs, ComplexCollect * col )
286286
AndOrList * ao = 0;
287287

288288
LISTdo( subs, subEnt, Entity )
289-
strcpy( node.name, ENTITYget_name( subEnt ) );
289+
strncpy( node.name, ENTITYget_name( subEnt ), BUFSIZ );
290290
if( !contains( &node ) ) {
291291
// We've found an implicit subtype.
292292
#ifdef COMPLEX_INFO

0 commit comments

Comments
 (0)