[xbuild] Bump buildtools to get support for netstandard 1.6
[mono.git] / mono / utils / mono-uri.c
index ba4908ab92e66b02220ba3d2ca0ed9cbd3d11669..8ebc25a69b303019f66ecd117a2e9f7a5843a0c1 100644 (file)
@@ -19,7 +19,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 +36,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;