Loading lib_com/count.c +1 −1 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ static char *my_strdup( const char *s ) /* allocate memory for copy of ID string (including string terminator) */ /* NOTE: the ID strings will never be deallocated because there is no way to "destroy" a counter that is not longer needed */ if ( ( dup = (char *) malloc_( strlen( s ) + 1 ) ) == NULL ) if ( ( dup = (char *) malloc( strlen( s ) + 1 ) ) == NULL ) return NULL; return strcpy( dup, s ); Loading Loading
lib_com/count.c +1 −1 Original line number Diff line number Diff line Loading @@ -311,7 +311,7 @@ static char *my_strdup( const char *s ) /* allocate memory for copy of ID string (including string terminator) */ /* NOTE: the ID strings will never be deallocated because there is no way to "destroy" a counter that is not longer needed */ if ( ( dup = (char *) malloc_( strlen( s ) + 1 ) ) == NULL ) if ( ( dup = (char *) malloc( strlen( s ) + 1 ) ) == NULL ) return NULL; return strcpy( dup, s ); Loading