summaryrefslogtreecommitdiffstats
path: root/src/webinspector.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-20 23:00:20 +0100
committerGravatar Martin Szulecki2014-03-20 23:00:20 +0100
commit88ce6113593158944630435678e689bf155d9a03 (patch)
tree0757287665b7e9c7263d77fd269b0777e8228d25 /src/webinspector.c
parenta34a537d1408f8692daeadd5e1f5859ff13a3473 (diff)
downloadlibimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.gz
libimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.bz2
Bump dependency to libplist 1.11 and remove use of "plist_dict_insert_item()"
Diffstat (limited to 'src/webinspector.c')
-rw-r--r--src/webinspector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webinspector.c b/src/webinspector.c
index c042df9..14a8bd8 100644
--- a/src/webinspector.c
+++ b/src/webinspector.c
@@ -178,12 +178,12 @@ webinspector_error_t webinspector_send(webinspector_client_t client, plist_t pli
plist_t outplist = plist_new_dict();
if (!is_final_message) {
/* split packet into partial chunks */
- plist_dict_insert_item(outplist, "WIRPartialMessageKey", plist_new_data(packet + offset, WEBINSPECTOR_PARTIAL_PACKET_CHUNK_SIZE));
+ plist_dict_set_item(outplist, "WIRPartialMessageKey", plist_new_data(packet + offset, WEBINSPECTOR_PARTIAL_PACKET_CHUNK_SIZE));
offset += WEBINSPECTOR_PARTIAL_PACKET_CHUNK_SIZE;
packet_length -= WEBINSPECTOR_PARTIAL_PACKET_CHUNK_SIZE;
} else {
/* send final chunk */
- plist_dict_insert_item(outplist, "WIRFinalMessageKey", plist_new_data(packet + offset, packet_length));
+ plist_dict_set_item(outplist, "WIRFinalMessageKey", plist_new_data(packet + offset, packet_length));
offset += packet_length;
packet_length -= packet_length;
}