merge two sets of patches to makedefs.c,qtext.h

Changes to be committed:
	modified:   include/qtext.h
	modified:   util/makedefs.c
This commit is contained in:
nhmall
2015-05-24 10:27:03 -04:00
parent cc50ecda67
commit 194fd2f78c
2 changed files with 9 additions and 0 deletions

View File

@@ -2423,6 +2423,14 @@ do_questtxt()
SpinCursor(3);
qt_line++;
if (!index(in_line, '\n')) {
/* no newline; line is longer than QTEXT_IN_SIZ-1 */
int c;
Fprintf(stderr, QLINE_TOO_LONG, qt_line);
/* discard the rest of the current input line */
do { c = fgetc(ifp); } while (c != '\n' && c != EOF);
}
if (qt_control(line))
do_qt_control(line);
else if (qt_comment(line))