[vlc-devel] [PATCH] url: remove size that doesn't even match the array

Francois Cartegnie fcvlcdev at free.fr
Wed Jun 22 16:51:36 CEST 2016


Le 22/06/2016 à 08:42, Steve Lhomme a écrit :
> ---
>  src/text/url.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/text/url.c b/src/text/url.c
> index 27db5e7..7132463 100644
> --- a/src/text/url.c
> +++ b/src/text/url.c
> @@ -102,7 +102,7 @@ static char *encode_URI_bytes (const char *str, size_t *restrict lenp)
>      char *out = buf;
>      for (size_t i = 0; i < *lenp; i++)
>      {
> -        static const char hex[16] = "0123456789ABCDEF";
> +        static const char hex[] = "0123456789ABCDEF";
>          unsigned char c = str[i];
>  
>          if (isurisafe (c))
> 

According to references, seems valid initialization.

Francois


More information about the vlc-devel mailing list