Re: [hackers] [ubase][PATCH 3/5] mount: Typofix
On Mon, Jul 11, 2016 at 02:27:58PM +0200, Klemens Nanni wrote:
> ---
> mount.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mount.c b/mount.c
> index 1f17789..1696219 100644
> --- a/mount.c
> +++ b/mount.c
> _AT_@ -54,7 +54,7 @@ findtype(const char *types, const char *t)
> }
>
> static void
> -parseopts(const char *popts, unsigned long *flags, char *data, size_t datasiz)
> +parseopts(const char *popts, unsigned long *flags, char *data, size_t datasize)
> {
> unsigned int i, validopt;
> size_t optlen, dlen = 0;
> _AT_@ -83,7 +83,7 @@ parseopts(const char *popts, unsigned long *flags, char *data, size_t datasiz)
>
> if (!validopt && optlen > 0) {
> /* unknown option, pass as data option to mount() */
> - if (dlen + optlen + 2 >= datasiz)
> + if (dlen + optlen + 2 >= datasize)
> return; /* prevent overflow */
> if (dlen)
> data[dlen++] = ',';
This is not a typo.
Received on Mon Jul 11 2016 - 15:59:05 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 11 2016 - 16:00:19 CEST