Skip to content

Commit

Permalink
cleanup CRTL code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jul 31, 2021
1 parent 526616e commit 2381968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bld/clib/startup/c/cmainqnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ static void SetupArgs( struct _proc_spawn *cmd )

envc = cmd->envc;

environ = cpp = (char **)malloc( (envc + 1) * sizeof( char * ) +
envc * sizeof( char ) );
environ = cpp = (char **)malloc( ENVARR_SIZE( envc ) );
if( environ == NULL ) {
_Not_Enough_Memory();
// never return
Expand Down

0 comments on commit 2381968

Please sign in to comment.