[Box Backup-dev] COMMIT r518 - box/chris/general/lib/backupclient

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sun, 26 Feb 2006 11:40:48 +0000 (GMT)


Author: chris
Date: 2006-02-26 11:40:46 +0000 (Sun, 26 Feb 2006)
New Revision: 518

Modified:
   box/chris/general/lib/backupclient/BackupClientRestore.cpp
Log:
* BackupClientRestore.cpp
- Use the correct separator when removing trailing slashes


Modified: box/chris/general/lib/backupclient/BackupClientRestore.cpp
===================================================================
--- box/chris/general/lib/backupclient/BackupClientRestore.cpp	2006-02-26 00:28:54 UTC (rev 517)
+++ box/chris/general/lib/backupclient/BackupClientRestore.cpp	2006-02-26 11:40:46 UTC (rev 518)
@@ -250,7 +250,8 @@
 	}
 
 	std::string parentDirectoryName(rLocalDirectoryName);
-	if(parentDirectoryName[parentDirectoryName.size() - 1] == '/')
+	if(parentDirectoryName[parentDirectoryName.size() - 1] == 
+		DIRECTORY_SEPARATOR_ASCHAR)
 	{
 		parentDirectoryName.resize(parentDirectoryName.size() - 1);
 	}