libs/libc/spawn: fix posix_spawn_file_actions_adddup2 alloc size error
Change-Id: I9f6f2c87b0d54c1c1a71056073a1d358b87dd1fd Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
187538c0b9
commit
179f5999d9
|
@ -70,7 +70,7 @@ int posix_spawn_file_actions_adddup2(
|
|||
/* Allocate the action list entry */
|
||||
|
||||
entry = (FAR struct spawn_dup2_file_action_s *)
|
||||
lib_zalloc(sizeof(struct spawn_close_file_action_s));
|
||||
lib_zalloc(sizeof(struct spawn_dup2_file_action_s));
|
||||
|
||||
if (!entry)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue