summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-04-06 21:02:37 +0000
committerChris Wilson <chris+github@qwirx.com>2011-04-06 21:02:37 +0000
commitbecc1071305fd999bd0e0994b59cee351f0737db (patch)
treefce7256b4c4b4f3c529b684718ee5d533d270ae8 /bin
parentd22fc3f49b5c1d1e1ccf0d250d7123b1a281dc18 (diff)
Fix string access violation.
Diffstat (limited to 'bin')
-rw-r--r--bin/bbackupd/BackupDaemon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp
index fdaf344f..b091cf1f 100644
--- a/bin/bbackupd/BackupDaemon.cpp
+++ b/bin/bbackupd/BackupDaemon.cpp
@@ -1274,9 +1274,9 @@ void BackupDaemon::CreateVssBackupComponents()
if(volumesIncluded.find(path[0]) == volumesIncluded.end())
{
std::wstring volumeRootWide;
- volumeRootWide[0] = (WCHAR) path[0];
- volumeRootWide[1] = (WCHAR) ':';
- volumeRootWide[2] = (WCHAR) '\\';
+ volumeRootWide.push_back((WCHAR) path[0]);
+ volumeRootWide.push_back((WCHAR) ':');
+ volumeRootWide.push_back((WCHAR) '\\');
VSS_ID newVolumeId;
result = mpVssBackupComponents->AddToSnapshotSet(
(VSS_PWSZ)(volumeRootWide.c_str()), GUID_NULL,