Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
3b141ba1
Commit
3b141ba1
authored
Jul 27, 2002
by
Howard Chu
Browse files
Fix segfault from ITS
#1960
hacks
parent
b6620f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblunicode/ucdata/ucgendat.c
View file @
3b141ba1
...
...
@@ -805,9 +805,8 @@ read_cdata(FILE *in)
char
line
[
512
],
*
s
,
*
e
;
lineno
=
skip
=
0
;
while
(
!
feof
(
in
))
{
if
(
!
fgets
(
line
,
sizeof
(
line
),
in
))
break
;
if
(
(
s
=
strchr
(
line
,
'\n'
))
)
*
s
=
'\0'
;
while
(
fgets
(
line
,
sizeof
(
line
),
in
))
{
if
(
(
s
=
strchr
(
line
,
'\n'
))
)
*
s
=
'\0'
;
lineno
++
;
/*
...
...
@@ -1165,9 +1164,8 @@ read_compexdata(FILE *in)
(
void
)
memset
((
char
*
)
compexs
,
0
,
sizeof
(
unsigned
long
)
<<
11
);
while
(
!
feof
(
in
))
{
if
(
!
fgets
(
line
,
sizeof
(
line
),
in
))
break
;
if
(
(
s
=
strchr
(
line
,
'\n'
))
)
*
s
=
'\0'
;
while
(
fgets
(
line
,
sizeof
(
line
),
in
))
{
if
(
(
s
=
strchr
(
line
,
'\n'
))
)
*
s
=
'\0'
;
/*
* Skip blank lines and lines that start with a '#'.
*/
...
...
@@ -1272,7 +1270,7 @@ write_cdata(char *opath)
/*
* Write the header.
*/
fwrite
((
char
*
)
hdr
,
sizeof
(
ac_uint
4
),
2
,
out
);
fwrite
((
char
*
)
hdr
,
sizeof
(
ac_uint
2
),
2
,
out
);
/*
* Write the byte count.
...
...
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