summaryrefslogtreecommitdiff
path: root/libsoup/soup-headers.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/soup-headers.c')
-rw-r--r--libsoup/soup-headers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-headers.c b/libsoup/soup-headers.c
index 99cf232f..6924f392 100644
--- a/libsoup/soup-headers.c
+++ b/libsoup/soup-headers.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * soup-headers.c: Asyncronous Callback-based SOAP Request Queue.
+ * soup-headers.c: Asyncronous Callback-based HTTP Request Queue.
*
* Authors:
* Alex Graveley (alex@ximian.com)
@@ -121,7 +121,7 @@ soup_headers_parse_request (gchar *str,
guint http_major, http_minor;
gchar method[16], path[1024];
- if (!str || !*str || len < sizeof ("GET / HTTP/0.0\r\n\r\n"))
+ if (!str || !*str || len < sizeof ("GET / HTTP/0.0\r\n\r\n") - 1)
goto THROW_MALFORMED_HEADER;
if (sscanf (str,