Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
16c3451f
Commit
16c3451f
authored
Apr 06, 2012
by
Robert Ricci
Browse files
Bug fix: use strncpy instead of strcpy in checkpass
parent
83ea592e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/checkpass/checkpass.c
View file @
16c3451f
...
...
@@ -15,7 +15,7 @@ int main(int ARGC, char* ARGV[]) {
return
0
;
}
strcpy
(
passwd
,
ARGV
[
1
]);
str
n
cpy
(
passwd
,
ARGV
[
1
]
,
255
);
sprintf
(
gecos
,
"%s:%s"
,
ARGV
[
2
],
ARGV
[
3
]);
retval
=
(
char
*
)
FascistCheck
(
passwd
,
path
,
gecos
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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