summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2010-03-13 11:56:11 -0500
committerDan Winship <danw@gnome.org>2010-03-13 11:56:11 -0500
commite69be10e1b99723460d9aca45a53cbbd6f2b5673 (patch)
tree30c531fb9f8b4f1afe1735620f4e363d7a092908
parent4e940891747bf26ff6cf945653d6710962de2867 (diff)
downloadlibsoup-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.c2
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++) {