From 158d0939288e8a3abb6bee2fef1697fedeaaaceb Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Thu, 22 Dec 2011 21:06:04 +0100 Subject: [PATCH] Adapt to ObjFW changes --- src/MPDConnection.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MPDConnection.m b/src/MPDConnection.m index 8c610aa..be46f5c 100644 --- a/src/MPDConnection.m +++ b/src/MPDConnection.m @@ -86,10 +86,10 @@ index = [answer indexOfFirstOccurrenceOfString: @":"]; if (index == OF_INVALID_INDEX) continue; - [response setObject: [answer substringFromIndex: index + 2 - toIndex: answer.length] - forKey: [answer substringFromIndex: 0 - toIndex: index]]; + [response setObject: [answer substringWithRange: + of_range(index + 2, answer.length - (index + 2))] + forKey: [answer + substringWithRange: of_range(0, index)]]; } return response; -- 2.39.5