]> git.sesse.net Git - vlc/commitdiff
Lalala
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 11 Apr 2006 16:18:39 +0000 (16:18 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 11 Apr 2006 16:18:39 +0000 (16:18 +0000)
src/misc/strings.c
src/test/url.c

index 8c53caecb1713fd792943dbfd3080189d26c6876..2d0c0ac0c52c087581daee92cf20e8dde8d9072b 100644 (file)
@@ -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 ) )
index 2e2e26b0ff6ca2ca5b510824d2d4d15ed434982b..fa5299d4ac3e4c4dea1a5ee23851e9d7252e9686 100644 (file)
@@ -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");