Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
8598816e
Commit
8598816e
authored
Sep 17, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stringop-overflow warning on GCC
parent
da350921
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libcaf_core/caf/streambuf.hpp
libcaf_core/caf/streambuf.hpp
+3
-3
No files found.
libcaf_core/caf/streambuf.hpp
View file @
8598816e
...
...
@@ -220,7 +220,7 @@ protected:
auto
available
=
this
->
epptr
()
-
this
->
pptr
();
auto
actual
=
std
::
min
(
n
,
static_cast
<
std
::
streamsize
>
(
available
));
std
::
memcpy
(
this
->
pptr
(),
s
,
static_cast
<
size_t
>
(
actual
)
*
sizeof
(
char_type
));
static_cast
<
size_t
>
(
actual
*
sizeof
(
char_type
)
));
this
->
safe_pbump
(
actual
);
return
actual
;
}
...
...
@@ -231,7 +231,7 @@ protected:
auto
available
=
this
->
egptr
()
-
this
->
gptr
();
auto
actual
=
std
::
min
(
n
,
static_cast
<
std
::
streamsize
>
(
available
));
std
::
memcpy
(
s
,
this
->
gptr
(),
static_cast
<
size_t
>
(
actual
)
*
sizeof
(
char_type
));
static_cast
<
size_t
>
(
actual
*
sizeof
(
char_type
)
));
this
->
safe_gbump
(
actual
);
return
actual
;
}
...
...
@@ -349,7 +349,7 @@ protected:
auto
available
=
this
->
egptr
()
-
this
->
gptr
();
auto
actual
=
std
::
min
(
n
,
static_cast
<
std
::
streamsize
>
(
available
));
std
::
memcpy
(
s
,
this
->
gptr
(),
static_cast
<
size_t
>
(
actual
)
*
sizeof
(
char_type
));
static_cast
<
size_t
>
(
actual
*
sizeof
(
char_type
)
));
this
->
safe_gbump
(
actual
);
return
actual
;
}
...
...
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