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

Steve Lhomme git at videolan.org
Wed Jun 22 08:55:54 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jun 22 08:42:16 2016 +0200| [a3c12b27fc18bde1440344b0ee766ea12e61f09e] | committer: Thomas Guillem

url: remove size that doesn't even match the array

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3c12b27fc18bde1440344b0ee766ea12e61f09e
---

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



More information about the vlc-commits mailing list