[Mplayer-cvslog] CVS: main/libmpdemux url.c,1.19,1.20

Tobias Diedrich CVS ranma at mplayerhq.hu
Fri Apr 18 14:16:58 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv20012/libmpdemux

Modified Files:
	url.c 
Log Message:
Fix incorrect URL encoding.
Ilya Konstantinov <mplayer-dev-eng at future.shiny.co.il>


Index: url.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/url.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- url.c	26 Mar 2003 11:27:48 -0000	1.19
+++ url.c	18 Apr 2003 12:16:35 -0000	1.20
@@ -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;



More information about the MPlayer-cvslog mailing list