Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
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
linux
linux-davinci
Commits
14a036d2
Commit
14a036d2
authored
Jul 23, 2006
by
Sam Ravnborg
Committed by
Sam Ravnborg
Sep 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kbuild: replace use of strlcpy with a dedicated implmentation in unifdef
Signed-off-by:
Sam Ravnborg
<
sam@ravnborg.org
>
parent
01f1c879
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
scripts/unifdef.c
scripts/unifdef.c
+8
-1
No files found.
scripts/unifdef.c
View file @
14a036d2
...
@@ -450,7 +450,14 @@ ignoreon(void)
...
@@ -450,7 +450,14 @@ ignoreon(void)
static
void
static
void
keywordedit
(
const
char
*
replacement
)
keywordedit
(
const
char
*
replacement
)
{
{
strlcpy
(
keyword
,
replacement
,
tline
+
sizeof
(
tline
)
-
keyword
);
size_t
size
=
tline
+
sizeof
(
tline
)
-
keyword
;
char
*
dst
=
keyword
;
const
char
*
src
=
replacement
;
if
(
size
!=
0
)
{
while
((
--
size
!=
0
)
&&
(
*
src
!=
'\0'
))
*
dst
++
=
*
src
++
;
*
dst
=
'\0'
;
}
print
();
print
();
}
}
static
void
static
void
...
...
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