GNOME Bugzilla – Bug 612644
crash in soup_uri_new_with_base
Last modified: 2010-03-13 16:59:00 UTC
Hi, There is a typo in soup_uri_new_with_base which causes some crashes : diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c index 0e3795d..d82fe29 100644 --- a/libsoup/soup-uri.c +++ b/libsoup/soup-uri.c @@ -157,7 +157,7 @@ soup_uri_new_with_base (SoupURI *base, const char *uri_string) len = strcspn (uri_string, "\t\n\r"); if (uri_string[len]) { - char *clean = g_malloc (strlen (uri_string + 1)), *d; + char *clean = g_malloc (strlen (uri_string) + 1), *d; const char *s; for (s = uri_string, d = clean; *s; s++) {
doh. thanks, fixed in git