[xiph-cvs] cvs commit: icecast/src util.c

Michael Smith msmith at xiph.org
Thu Apr 10 07:28:02 PDT 2003



msmith      03/04/10 10:28:02

  Modified:    src      util.c
  Log:
  What was I on when I wrote this? oddsock pointed out that util_url_escape()
  was chronically broken

Revision  Changes    Path
1.22      +2 -2      icecast/src/util.c

Index: util.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/util.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- util.c	15 Mar 2003 02:10:17 -0000	1.21
+++ util.c	10 Apr 2003 14:28:02 -0000	1.22
@@ -253,8 +253,8 @@
         }
         else {
             dst[j] = '%';
-            dst[j+1] = hexchars[ source[i] & 0x15 ];
-            dst[j+2] = hexchars[ (source[i] >> 4) & 0x15 ];
+            dst[j+1] = hexchars[ (source[i] >> 4) & 0xf ];
+            dst[j+2] = hexchars[ source[i] & 0xf ];
             j+= 3;
         }
     }

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list