From 20b8bdb5a62577475bb32ec16b45173fd8f2ecdf Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 14 Dec 2023 07:31:47 +0600 Subject: [PATCH] fix off-by-one error in .def parser added in 4b96cb6744aa01b32881ec3b18fc1a021bf5a37c --- radiant/eclass_def.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/radiant/eclass_def.cpp b/radiant/eclass_def.cpp index 2a52aeb7..01b2da25 100644 --- a/radiant/eclass_def.cpp +++ b/radiant/eclass_def.cpp @@ -70,7 +70,6 @@ StaticRegisterModule staticRegisterEclassDef( StaticEclassDefModule::instance() char com_token[1024]; -bool com_eof; /* ============== @@ -95,7 +94,6 @@ skipwhite: while ( ( c = *data ) <= ' ' ) { if ( c == 0 ) { - com_eof = true; return 0; // end of file; } data++; @@ -252,7 +250,6 @@ EntityClass *Eclass_InitFromText( const char *text ){ { // get the flags: advance to the first \n while ( *text && *text++ != '\n' ){}; parms = { parms.begin(), text }; - ( *text && ++text ); } {