Blame SOURCES/0001-Use-strlen-instead-of-hard-coding-string-length.patch

f51234
From 617164b22dbbe17490377c56f8a859541e9fcfdb Mon Sep 17 00:00:00 2001
f51234
From: Bastien Nocera <hadess@hadess.net>
f51234
Date: Tue, 29 Oct 2013 11:34:20 +0100
f51234
Subject: [PATCH 1/3] Use strlen() instead of hard-coding string length
f51234
f51234
This avoids hard to detect bugs when we want a different string length,
f51234
and will be optimised by the compiler anyway.
f51234
f51234
https://bugzilla.gnome.org/show_bug.cgi?id=711063
f51234
---
f51234
 libdmapsharing/daap-share.c | 2 +-
f51234
 1 file changed, 1 insertion(+), 1 deletion(-)
f51234
f51234
diff --git a/libdmapsharing/daap-share.c b/libdmapsharing/daap-share.c
f51234
index 6b719f5..66cdfe6 100644
f51234
--- a/libdmapsharing/daap-share.c
f51234
+++ b/libdmapsharing/daap-share.c
f51234
@@ -922,7 +922,7 @@ databases_items_xxx (DMAPShare * share,
f51234
 		const gchar *s;
f51234
 		gchar *content_range;
f51234
 
f51234
-		s = range_header + 6;	/* bytes= */
f51234
+		s = range_header + strlen ("bytes=");	/* bytes= */
f51234
 		offset = atoll (s);
f51234
 
f51234
 		content_range =
f51234
-- 
f51234
1.8.3.1
f51234