[runtime] Fix DISABLE_REFLECTION_EMIT build.
[mono.git] / mono / utils / mono-uri.c
index ba4908ab92e66b02220ba3d2ca0ed9cbd3d11669..a39f6be3f0819d4b93b0799c7a35bb53fb526786 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * mono-uri.c: Simple routine used to escape uris.
+/**
+ * \file
+ * Simple routine used to escape uris.
  *
  * Author:
  *   Miguel de Icaza (miguel@novell.com)
@@ -19,7 +20,7 @@ mono_escape_uri_string (const gchar *string)
        while ((c = (guchar) *string) != 0){
                if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '-' && c <= ':') || (c >= '&' && c <= '*'))
                        g_string_append_c (str, c);
-               else if (c == '!' || c == '=' || c == '?' || c == '?' || c == '_' || c == '_' || c == '~')
+               else if (c == '!' || c == '=' || c == '?' || c == '_' || c == '~')
                        g_string_append_c (str, c);
                else {
                        g_string_append_c (str, '%');
@@ -36,7 +37,7 @@ mono_escape_uri_string (const gchar *string)
 #if TEST
 int main ()
 {
-       char *s = malloc (256);
+       char *s = g_malloc (256);
        int i = 0;
        
        s [255] = 0;