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
Nadezhda Ivanova
OpenLDAP
Commits
2c3730be
Commit
2c3730be
authored
Jul 10, 2002
by
Kurt Zeilenga
Browse files
Fixed ucgendat EOF bug (ITS#1917)
parent
2a193866
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblunicode/ucdata/ucgendat.c
View file @
2c3730be
...
...
@@ -804,7 +804,8 @@ read_cdata(FILE *in)
char
line
[
512
],
*
s
,
*
e
;
lineno
=
skip
=
0
;
while
(
fscanf
(
in
,
"%[^
\n
]
\n
"
,
line
)
!=
EOF
)
{
while
(
!
feof
(
in
))
{
if
(
fscanf
(
in
,
"%[^
\n
]
\n
"
,
line
)
!=
1
)
break
;
lineno
++
;
/*
...
...
@@ -1162,7 +1163,8 @@ read_compexdata(FILE *in)
(
void
)
memset
((
char
*
)
compexs
,
0
,
sizeof
(
unsigned
long
)
<<
11
);
while
(
fscanf
(
in
,
"%[^
\n
]
\n
"
,
line
)
!=
EOF
)
{
while
(
!
feof
(
in
))
{
if
(
fscanf
(
in
,
"%[^
\n
]
\n
"
,
line
)
!=
1
)
break
;
/*
* Skip blank lines and lines that start with a '#'.
*/
...
...
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