• R/O
  • SSH
  • HTTPS

gtaconfig: Commit


Commit MetaInfo

Revision16 (tree)
Time2018-04-17 14:47:44
Authorquiret

Log Message

- fixed a bug in CSyntax::ScanCharacterEx where it did search from buffer start which was wrong

Change Summary

Incremental Difference

--- src/syntax.h (revision 15)
+++ src/syntax.h (revision 16)
@@ -760,8 +760,13 @@
760760 }
761761 bool ScanCharacterEx(char c, bool ignoreName, bool ignoreNumber, bool ignoreNewline)
762762 {
763- char_iter iter( this->m_buffer, char_prov( this->m_buffer, this->m_size ) );
763+ size_t real_off = this->m_offset;
764764
765+ size_t leftSize = ( this->m_size - real_off );
766+ const encodingCharType *start_buf = ( this->m_buffer + real_off );
767+
768+ char_iter iter( start_buf, char_prov( start_buf, leftSize ) );
769+
765770 while ( !iter.IsEnd() )
766771 {
767772 ucp_t read = iter.Resolve();
Show on old repository browser