Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1bd9439b
Commit
1bd9439b
authored
May 25, 2003
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kernel/* strlcpy conversion
parent
2f124a73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
kernel/acct.c
kernel/acct.c
+1
-2
kernel/cpufreq.c
kernel/cpufreq.c
+1
-1
No files found.
kernel/acct.c
View file @
1bd9439b
...
...
@@ -323,8 +323,7 @@ static void do_acct_process(long exitcode, struct file *file)
*/
memset
((
caddr_t
)
&
ac
,
0
,
sizeof
(
struct
acct
));
strncpy
(
ac
.
ac_comm
,
current
->
comm
,
ACCT_COMM
);
ac
.
ac_comm
[
ACCT_COMM
-
1
]
=
'\0'
;
strlcpy
(
ac
.
ac_comm
,
current
->
comm
,
sizeof
(
ac
.
ac_comm
));
elapsed
=
get_jiffies_64
()
-
current
->
start_time
;
ac
.
ac_etime
=
encode_comp_t
(
elapsed
<
(
unsigned
long
)
-
1l
?
...
...
kernel/cpufreq.c
View file @
1bd9439b
...
...
@@ -362,7 +362,7 @@ static int cpufreq_add_dev (struct class_device * class_dev)
policy
->
kobj
.
parent
=
&
class_dev
->
kobj
;
policy
->
kobj
.
ktype
=
&
ktype_cpufreq
;
// policy->dev = dev->dev;
str
n
cpy
(
policy
->
kobj
.
name
,
"cpufreq"
,
KOBJ_NAME_LEN
);
str
l
cpy
(
policy
->
kobj
.
name
,
"cpufreq"
,
KOBJ_NAME_LEN
);
ret
=
kobject_register
(
&
policy
->
kobj
);
if
(
ret
)
...
...
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