Skip to content

Commit efd3538

Browse files
starseekercshorler
authored andcommitted
Use strncpy to transfer nm to name
1 parent 9b15e1c commit efd3538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exp2cxx/complexSupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class EntNode {
7373
public:
7474
EntNode( const char * nm = "" ) : next( 0 ), mark( NOMARK ),
7575
multSupers( 0 ) {
76-
strcpy( name, nm );
76+
strncpy( name, nm, BUFSIZ );
7777
}
7878
EntNode( char *[] ); // given a list, create a linked list of EntNodes
7979
~EntNode() {

0 commit comments

Comments
 (0)