Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
f1047b70
Commit
f1047b70
authored
Aug 06, 2002
by
Kurt Zeilenga
Browse files
ITS#2010: use snprintf instead of strcpy to prevent buffer overflow
parent
3f2faa1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slurpd/sanity.c
View file @
f1047b70
...
...
@@ -185,7 +185,7 @@ filecheck(
char
*
p
;
unsigned
int
ret
=
0
;
strcpy
(
dir
,
f
);
snprintf
(
dir
,
sizeof
dir
,
"%s"
,
f
);
p
=
strrchr
(
dir
,
LDAP_DIRSEP
[
0
]
);
if
(
p
!=
NULL
)
{
*
p
=
'\0'
;
...
...
Write
Preview
Supports
Markdown
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