changeset 9924:d66ed2c80ddf

Fix incorrect URL encoding. Ilya Konstantinov <mplayer-dev-eng@future.shiny.co.il>
author ranma
date Fri, 18 Apr 2003 12:16:35 +0000
parents 9eb5d5bd9aaa
children 420640a0f6d0
files libmpdemux/url.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/url.c	Fri Apr 18 07:48:29 2003 +0000
+++ b/libmpdemux/url.c	Fri Apr 18 12:16:35 2003 +0000
@@ -232,9 +232,9 @@
 			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;