From 4715b65fc1eb06686a6b68c39c01630c427ae6ea Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Mon, 12 Aug 2013 14:44:33 -0400
Subject: [PATCH] * #28334: test: use vector<char> where contiguous character
 buffer access is assumed

---
 daemon/src/video/test/test_shm.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/daemon/src/video/test/test_shm.cpp b/daemon/src/video/test/test_shm.cpp
index 199166b7a8..1ac94610ac 100644
--- a/daemon/src/video/test/test_shm.cpp
+++ b/daemon/src/video/test/test_shm.cpp
@@ -80,12 +80,12 @@ void run_client()
         return;
 
     // initialize destination string to 0's
-    std::string dest(sizeof(test_data), 0);
-    const std::string test_data_str(test_data, sizeof(test_data));
+    std::vector<char> dest(sizeof(test_data), 0);
+    const std::vector<char> test_data_str(test_data, test_data + sizeof(test_data));
     assert(test_data_str.size() == 27);
     assert(dest.size() == test_data_str.size());
     while (not done and dest != test_data_str) {
-        src.render(&(*dest.begin()), dest.size());
+        src.render(dest.data(), dest.size());
         usleep(1000);
     }
     src.stop();
-- 
GitLab