Skip to content

Commit e8afb77

Browse files
committed
remove strncpy as we're not using it anyway - fixes crash on enumeration output
1 parent 0eefd76 commit e8afb77

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/exp2python/src/classes_python.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,6 @@ void
18451845
TYPEenum_lib_print( const Type type, FILE * f ) {
18461846
DictionaryEntry de;
18471847
Expression expr;
1848-
char c_enum_ele [BUFSIZ];
18491848
/* begin the new enum type */
18501849
if( is_python_keyword( TYPEget_name( type ) ) ) {
18511850
fprintf( f, "\n# ENUMERATION TYPE %s_\n", TYPEget_name( type ) );
@@ -1862,7 +1861,6 @@ TYPEenum_lib_print( const Type type, FILE * f ) {
18621861
/* set up the dictionary info */
18631862
DICTdo_type_init( ENUM_TYPEget_items( type ), &de, OBJ_ENUM );
18641863
while( 0 != ( expr = ( Expression )DICTdo( &de ) ) ) {
1865-
strncpy( c_enum_ele, EnumCElementName( type, expr ), BUFSIZ );
18661864
if( is_python_keyword( EXPget_name( expr ) ) ) {
18671865
fprintf( f, "%s_ ", EXPget_name( expr ) );
18681866
} else {

0 commit comments

Comments
 (0)