[PATCH v3 1/2] stdlib: Use scratch_buffer on realpath (BZ #26341)
Andreas Schwab
schwab@linux-m68k.org
Wed Aug 19 07:07:45 GMT 2020
On Aug 18 2020, Adhemerval Zanella via Libc-alpha wrote:
> +static bool
> +realpath_readlink (const char *rpath, const char *end, size_t path_max,
> + size_t st_size, struct scratch_buffer *out)
> +{
> + struct scratch_buffer buf;
> + scratch_buffer_init (&buf);
> +
> + if (!scratch_buffer_set_array_size (&buf, st_size + 1, sizeof (char *)))
Are you sure you need an array of pointers?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list