Skip to content
Snippets Groups Projects
Commit 2c3730be authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fixed ucgendat EOF bug (ITS#1917)

parent 2a193866
No related branches found
No related tags found
No related merge requests found
......@@ -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 '#'.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment