Commit 2be9be27 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Lalala

parent f76c592f
......@@ -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 ) )
......
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment