diff options
author | Matt Colyer | 2008-08-13 00:16:56 -0700 |
---|---|---|
committer | Matt Colyer | 2008-08-13 00:16:56 -0700 |
commit | f281e24cca43149db1f6077a8b42e456393a8856 (patch) | |
tree | cc6e90eeb9ab7c090d269e4caf655086117f5212 /src/AFC.c | |
parent | 5564ba708974fcae6dbea334de42d2212c8a5d20 (diff) | |
download | libplist-f281e24cca43149db1f6077a8b42e456393a8856.tar.gz libplist-f281e24cca43149db1f6077a8b42e456393a8856.tar.bz2 |
Fix renaming files, it was missing the second NULL character.
Diffstat (limited to 'src/AFC.c')
-rw-r--r-- | src/AFC.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -446,7 +446,7 @@ int afc_rename_file(AFClient *client, const char *from, const char *to) { // Send command memcpy(send, from, strlen(from)+1); - memcpy(send+strlen(from)+1, to, strlen(to)); + memcpy(send+strlen(from)+1, to, strlen(to)+1); client->afc_packet->entire_length = client->afc_packet->this_length = 0; client->afc_packet->operation = AFC_RENAME; bytes = dispatch_AFC_packet(client, send, strlen(to) + strlen(from) + 2); |