Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
4715b65f
Commit
4715b65f
authored
11 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #28334: test: use vector<char> where contiguous character buffer access is assumed
parent
dd96fce5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/video/test/test_shm.cpp
+3
-3
3 additions, 3 deletions
daemon/src/video/test/test_shm.cpp
with
3 additions
and
3 deletions
daemon/src/video/test/test_shm.cpp
+
3
−
3
View file @
4715b65f
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment