Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3d36e44a
Unverified
Commit
3d36e44a
authored
May 10, 2018
by
Stéphane Graber
Committed by
GitHub
May 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2313 from brauner/2018-05-11/compiler_fixes
confile: satisfy gcc-8
parents
d9750081
d3bdf12c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
confile_utils.c
src/lxc/confile_utils.c
+6
-2
No files found.
src/lxc/confile_utils.c
View file @
3d36e44a
...
@@ -621,10 +621,14 @@ bool new_hwaddr(char *hwaddr)
...
@@ -621,10 +621,14 @@ bool new_hwaddr(char *hwaddr)
int
lxc_get_conf_str
(
char
*
retv
,
int
inlen
,
const
char
*
value
)
int
lxc_get_conf_str
(
char
*
retv
,
int
inlen
,
const
char
*
value
)
{
{
size_t
value_len
;
if
(
!
value
)
if
(
!
value
)
return
0
;
return
0
;
if
(
retv
&&
inlen
>=
strlen
(
value
)
+
1
)
strncpy
(
retv
,
value
,
strlen
(
value
)
+
1
);
value_len
=
strlen
(
value
);
if
(
retv
&&
inlen
>=
value_len
+
1
)
memcpy
(
retv
,
value
,
value_len
+
1
);
return
strlen
(
value
);
return
strlen
(
value
);
}
}
...
...
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