diff options
author | Dan Winship <danw@gnome.org> | 2010-03-13 11:56:11 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-03-13 11:56:11 -0500 |
commit | e69be10e1b99723460d9aca45a53cbbd6f2b5673 (patch) | |
tree | 30c531fb9f8b4f1afe1735620f4e363d7a092908 | |
parent | 4e940891747bf26ff6cf945653d6710962de2867 (diff) | |
download | libsoup-e69be10e1b99723460d9aca45a53cbbd6f2b5673.tar.gz |
Fix a crash in the whitespace-stripping code in soup_uri_new
Patch from "arnaud.lb".
https://bugzilla.gnome.org/show_bug.cgi?id=612644
-rw-r--r-- | libsoup/soup-uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c index 0e3795d0..d82fe294 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++) { |