Fix incorrect URL encoding.

Ilya Konstantinov <mplayer-dev-eng@future.shiny.co.il>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9925 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ranma 2003-04-18 12:16:35 +00:00
parent eb278efa62
commit cb961f6600
1 changed files with 2 additions and 2 deletions

View File

@ -232,9 +232,9 @@ url_escape_string(char *outbuf, const char *inbuf) {
unsigned char c1 = ((c & 0xf0) >> 4);
unsigned char c2 = (c & 0x0f);
if (c1 < 10) c1+='0';
else c1+='A';
else c1+='A'-10;
if (c2 < 10) c2+='0';
else c2+='A';
else c2+='A'-10;
*outbuf++ = '%';
*outbuf++ = c1;
*outbuf++ = c2;