mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user