Fixed input EOF bug.

This commit is contained in:
Justin J. Meza 2011-06-29 13:27:05 -07:00
parent d3e80e636e
commit 7e5912432f
1 changed files with 1 additions and 1 deletions

View File

@ -2619,7 +2619,7 @@ ReturnObject *interpretInputStmtNode(StmtNode *node, /**< [in] A pointer to
void *mem = NULL;
InputStmtNode *stmt = (InputStmtNode *)node->stmt;
ValueObject *val = NULL;
while ((c = getchar())) {
while ((c = getchar()) && !feof(stdin)) {
/** \note The specification is unclear as to the exact semantics
* of input. Here, we read up until the first newline or
* EOF but do not store it. */