diff options
Diffstat (limited to 'src/property_list_service.c')
| -rw-r--r-- | src/property_list_service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c index 5c6d2bd..8af958e 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c | |||
| @@ -245,6 +245,11 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis | |||
| 245 | if (!memcmp(content, "bplist00", 8)) { | 245 | if (!memcmp(content, "bplist00", 8)) { |
| 246 | plist_from_bin(content, pktlen, plist); | 246 | plist_from_bin(content, pktlen, plist); |
| 247 | } else { | 247 | } else { |
| 248 | /* iOS 4.3 hack: plist data might contain invalid null characters, thus we convert those to spaces */ | ||
| 249 | for (bytes = 0; bytes < pktlen-1; bytes++) { | ||
| 250 | if (content[bytes] == 0x0) | ||
| 251 | content[bytes] = 0x20; | ||
| 252 | } | ||
| 248 | plist_from_xml(content, pktlen, plist); | 253 | plist_from_xml(content, pktlen, plist); |
| 249 | } | 254 | } |
| 250 | if (*plist) { | 255 | if (*plist) { |
