From 4e8ab34ca00f13654b323d430d533bc271c226bf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 3 Feb 2009 08:59:38 -0500 Subject: [PATCH] Fixed infinite loop. --- mojoshader_assembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader_assembler.c b/mojoshader_assembler.c index 298a1e09..c619ce8f 100644 --- a/mojoshader_assembler.c +++ b/mojoshader_assembler.c @@ -2002,7 +2002,7 @@ const MOJOSHADER_parseData *MOJOSHADER_assemble(const char *source, output_comments(ctx, comments, comment_count, symbols, symbol_count); // parse out the rest of the tokens after the version token... - while (nexttoken(ctx, 1, 1, 0, 1)) + while ((nexttoken(ctx, 1, 1, 0, 1)) && (!ctx->eof)) { if (isfail(ctx)) {