X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-uri.c;h=8ebc25a69b303019f66ecd117a2e9f7a5843a0c1;hb=c952badd43d182d58da94c9976ebd8f34e5d805d;hp=ba4908ab92e66b02220ba3d2ca0ed9cbd3d11669;hpb=9975a45f43793e34318e593ddacd3f332f8d91c0;p=mono.git diff --git a/mono/utils/mono-uri.c b/mono/utils/mono-uri.c index ba4908ab92e..8ebc25a69b3 100644 --- a/mono/utils/mono-uri.c +++ b/mono/utils/mono-uri.c @@ -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;