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

Steve Lhomme robux4 at videolabs.io
Wed Jun 22 08:42:16 CEST 2016


---
 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))
-- 
2.8.2



More information about the vlc-devel mailing list