Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
f889d758
Commit
f889d758
authored
Nov 22, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #48 from dwrensha/null-terminator
remove superfluous null terminator
parents
2ca06513
0fc7a601
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
capnproto-catrank.c++
c++/src/capnp/benchmark/capnproto-catrank.c++
+3
-2
No files found.
c++/src/capnp/benchmark/capnproto-catrank.c++
View file @
f889d758
...
@@ -56,10 +56,11 @@ public:
...
@@ -56,10 +56,11 @@ public:
int
urlSize
=
fastRand
(
100
);
int
urlSize
=
fastRand
(
100
);
static
const
char
URL_PREFIX
[]
=
"http://example.com/"
;
static
const
char
URL_PREFIX
[]
=
"http://example.com/"
;
auto
url
=
result
.
initUrl
(
urlSize
+
sizeof
(
URL_PREFIX
));
size_t
urlPrefixLength
=
strlen
(
URL_PREFIX
);
auto
url
=
result
.
initUrl
(
urlSize
+
urlPrefixLength
);
strcpy
(
url
.
begin
(),
URL_PREFIX
);
strcpy
(
url
.
begin
(),
URL_PREFIX
);
char
*
pos
=
url
.
begin
()
+
strlen
(
URL_PREFIX
)
;
char
*
pos
=
url
.
begin
()
+
urlPrefixLength
;
for
(
int
j
=
0
;
j
<
urlSize
;
j
++
)
{
for
(
int
j
=
0
;
j
<
urlSize
;
j
++
)
{
*
pos
++
=
'a'
+
fastRand
(
26
);
*
pos
++
=
'a'
+
fastRand
(
26
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment