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
parent 90a75dfedf
commit d24728997f
+1 -1
View File
@@ -86,7 +86,7 @@ int posix_spawn_file_actions_adddup2(FAR posix_spawn_file_actions_t *file_action
/* 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)
{