From f281e24cca43149db1f6077a8b42e456393a8856 Mon Sep 17 00:00:00 2001
From: Matt Colyer
Date: Wed, 13 Aug 2008 00:16:56 -0700
Subject: Fix renaming files, it was missing the second NULL character.

---
 src/AFC.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
 	
 	// 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);
-- 
cgit v1.1-32-gdbae