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:
ligd 2021-03-16 20:44:16 +08:00 committed by David Sidrane
parent 187538c0b9
commit 179f5999d9
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{