summaryrefslogtreecommitdiffstats
path: root/src/property_list_service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/property_list_service.c')
-rw-r--r--src/property_list_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/property_list_service.c b/src/property_list_service.c
index 8634864..c9a8edf 100644
--- a/src/property_list_service.c
+++ b/src/property_list_service.c
@@ -250,7 +250,7 @@ static property_list_service_error_t internal_plist_receive_timeout(property_lis
250 } else { 250 } else {
251 /* iOS 4.3+ hack: plist data might contain invalid characters, thus we convert those to spaces */ 251 /* iOS 4.3+ hack: plist data might contain invalid characters, thus we convert those to spaces */
252 for (bytes = 0; bytes < pktlen-1; bytes++) { 252 for (bytes = 0; bytes < pktlen-1; bytes++) {
253 if ((content[bytes] < 0x20) && (content[bytes] != 0x09) && (content[bytes] != 0x0a) && (content[bytes] != 0x0d)) 253 if ((content[bytes] >= 0) && (content[bytes] < 0x20) && (content[bytes] != 0x09) && (content[bytes] != 0x0a) && (content[bytes] != 0x0d))
254 content[bytes] = 0x20; 254 content[bytes] = 0x20;
255 } 255 }
256 plist_from_xml(content, pktlen, plist); 256 plist_from_xml(content, pktlen, plist);