mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
+1
-1
@@ -756,7 +756,7 @@ start:
|
||||
argc++;
|
||||
}
|
||||
|
||||
if (argc == 0)
|
||||
if ((argc == 0) && (size > 0))
|
||||
goto start;
|
||||
|
||||
return (argc);
|
||||
|
||||
Reference in New Issue
Block a user