Modified the EFread routine so that it will not infinite loop on
a truncated line. There is still a question as to why an example occurred that caused a line to be truncated, and whether a buffer size needs to be made larger or made dynamically allocated.
This commit is contained in:
parent
01966d594e
commit
efe6af8465
|
|
@ -756,7 +756,7 @@ start:
|
|||
argc++;
|
||||
}
|
||||
|
||||
if (argc == 0)
|
||||
if ((argc == 0) && (size > 0))
|
||||
goto start;
|
||||
|
||||
return (argc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue