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
1267b235
Commit
1267b235
authored
Mar 24, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Mar 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] null-terminate sb->s_id
strncpy() may not null-terminate the destination.
parent
b0887c1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/super.c
fs/super.c
+1
-1
No files found.
fs/super.c
View file @
1267b235
...
@@ -636,7 +636,7 @@ struct super_block *get_sb_bdev(struct file_system_type *fs_type,
...
@@ -636,7 +636,7 @@ struct super_block *get_sb_bdev(struct file_system_type *fs_type,
char
b
[
BDEVNAME_SIZE
];
char
b
[
BDEVNAME_SIZE
];
s
->
s_flags
=
flags
;
s
->
s_flags
=
flags
;
str
n
cpy
(
s
->
s_id
,
bdevname
(
bdev
,
b
),
sizeof
(
s
->
s_id
));
str
l
cpy
(
s
->
s_id
,
bdevname
(
bdev
,
b
),
sizeof
(
s
->
s_id
));
s
->
s_old_blocksize
=
block_size
(
bdev
);
s
->
s_old_blocksize
=
block_size
(
bdev
);
sb_set_blocksize
(
s
,
s
->
s_old_blocksize
);
sb_set_blocksize
(
s
,
s
->
s_old_blocksize
);
error
=
fill_super
(
s
,
data
,
flags
&
MS_VERBOSE
?
1
:
0
);
error
=
fill_super
(
s
,
data
,
flags
&
MS_VERBOSE
?
1
:
0
);
...
...
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