[cherry] [release-76-crash-fix] [ios] Fixed crash with wrong format specifier.

This commit is contained in:
Ilya Grechuhin 2017-11-10 10:11:21 +03:00 committed by Roman Kuznetsov
parent eb1c0a8112
commit f01432d41c

View file

@ -1,6 +1,6 @@
extension String {
init(coreFormat: String, arguments: [CVarArg]) {
let format = coreFormat.replacingOccurrences(of: "%s", with: "%@")
self.init(format: format, arguments: arguments)
self.init(format: format, arguments: arguments.map { "\($0)" })
}
}