Re: [PATCH 1/6] env: allow to copy value from default environment into a buffer

2023-11-09 Thread Tom Rini
On Wed, Nov 08, 2023 at 03:20:30PM +0100, Quentin Schulz wrote: > From: Quentin Schulz > > env_get_default suffers from a particular issue int that it can only > return a value truncated to gd->env_buf (32) characters. This may be > enough for most variables but it isn't for others, so let's all

Re: [PATCH 1/6] env: allow to copy value from default environment into a buffer

2023-11-08 Thread Kever Yang
On 2023/11/8 22:20, Quentin Schulz wrote: From: Quentin Schulz env_get_default suffers from a particular issue int that it can only return a value truncated to gd->env_buf (32) characters. This may be enough for most variables but it isn't for others, so let's allow users to provide a preallo

[PATCH 1/6] env: allow to copy value from default environment into a buffer

2023-11-08 Thread Quentin Schulz
From: Quentin Schulz env_get_default suffers from a particular issue int that it can only return a value truncated to gd->env_buf (32) characters. This may be enough for most variables but it isn't for others, so let's allow users to provide a preallocated buffer to copy the value into instead, a