From: RĂ©mi Denis-Courmont Date: Tue, 11 Apr 2006 16:18:39 +0000 (+0000) Subject: Lalala X-Git-Tag: 0.9.0-test0~11541 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2be9be270037b619f3be91b14770cec7a76d96a8;p=vlc Lalala --- diff --git a/src/misc/strings.c b/src/misc/strings.c index 8c53caecb1..2d0c0ac0c5 100644 --- a/src/misc/strings.c +++ b/src/misc/strings.c @@ -142,7 +142,7 @@ void decode_URI( char *psz ) { case '%': { - char hex[2]; + char hex[3]; if( ( ( hex[0] = *in++ ) == 0 ) || ( ( hex[1] = *in++ ) == 0 ) ) diff --git a/src/test/url.c b/src/test/url.c index 2e2e26b0ff..fa5299d4ac 100644 --- a/src/test/url.c +++ b/src/test/url.c @@ -52,6 +52,8 @@ int main (void) test_decode ("This%20should%20be%20modified%201234!", "This should be modified 1234!"); + test_decode ("%7E", "~"); + /* tests with invalid input */ test_decode ("%", "%"); test_decode ("%2", "%2");