summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-13 00:16:56 -0700
committerGravatar Matt Colyer2008-08-13 00:16:56 -0700
commitf281e24cca43149db1f6077a8b42e456393a8856 (patch)
treecc6e90eeb9ab7c090d269e4caf655086117f5212 /src
parent5564ba708974fcae6dbea334de42d2212c8a5d20 (diff)
downloadlibimobiledevice-f281e24cca43149db1f6077a8b42e456393a8856.tar.gz
libimobiledevice-f281e24cca43149db1f6077a8b42e456393a8856.tar.bz2
Fix renaming files, it was missing the second NULL character.
Diffstat (limited to 'src')
-rw-r--r--src/AFC.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 0f454a3..19d8ae5 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -446,7 +446,7 @@ int afc_rename_file(AFClient *client, const char *from, const char *to) {
446 446
447 // Send command 447 // Send command
448 memcpy(send, from, strlen(from)+1); 448 memcpy(send, from, strlen(from)+1);
449 memcpy(send+strlen(from)+1, to, strlen(to)); 449 memcpy(send+strlen(from)+1, to, strlen(to)+1);
450 client->afc_packet->entire_length = client->afc_packet->this_length = 0; 450 client->afc_packet->entire_length = client->afc_packet->this_length = 0;
451 client->afc_packet->operation = AFC_RENAME; 451 client->afc_packet->operation = AFC_RENAME;
452 bytes = dispatch_AFC_packet(client, send, strlen(to) + strlen(from) + 2); 452 bytes = dispatch_AFC_packet(client, send, strlen(to) + strlen(from) + 2);