diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-04-06 21:02:37 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-04-06 21:02:37 +0000 |
commit | becc1071305fd999bd0e0994b59cee351f0737db (patch) | |
tree | fce7256b4c4b4f3c529b684718ee5d533d270ae8 /bin/bbackupd/BackupDaemon.cpp | |
parent | d22fc3f49b5c1d1e1ccf0d250d7123b1a281dc18 (diff) |
Fix string access violation.
Diffstat (limited to 'bin/bbackupd/BackupDaemon.cpp')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 6 |
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, |