From: Florian Zeitz Date: Thu, 22 Dec 2011 20:06:04 +0000 (+0100) Subject: Adapt to ObjFW changes X-Git-Url: https://cgit.babelmonkeys.de/?a=commitdiff_plain;h=158d0939288e8a3abb6bee2fef1697fedeaaaceb;hp=4119a69a36303a285f2c2472c53f3a0906889fc7;p=mpdbot.git Adapt to ObjFW changes --- 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;