[Box Backup-commit] COMMIT r3609 - box/trunk/bin/bbackupd

subversion at boxbackup.org subversion at boxbackup.org
Thu Aug 6 20:10:32 BST 2015


Author: chris
Date: 2015-08-06 19:10:31 +0000 (Thu, 06 Aug 2015)
New Revision: 3609

Modified:
   box/trunk/bin/bbackupd/BackupDaemon.cpp
Log:
Fix error message corruption in BackupDaemon.

Was due to accessing the exception's string after it had gone out of scope.

Modified: box/trunk/bin/bbackupd/BackupDaemon.cpp
===================================================================
--- box/trunk/bin/bbackupd/BackupDaemon.cpp	2015-07-31 21:57:06 UTC (rev 3608)
+++ box/trunk/bin/bbackupd/BackupDaemon.cpp	2015-08-06 19:10:31 UTC (rev 3609)
@@ -774,7 +774,7 @@
 {
 	bool errorOccurred = false;
 	int errorCode = 0, errorSubCode = 0;
-	const char* errorString = "unknown";
+	std::string errorString = "unknown";
 
 	try
 	{




More information about the Boxbackup-commit mailing list