[MOAB-dev] commit/MOAB: tautges: Fixed a problem with entities having the character '#' in their name, which messed up scanning of lines in the embedded ACIS file.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Feb 19 19:55:39 CST 2014
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/1f7138bcddef/
Changeset: 1f7138bcddef
Branch: master
User: tautges
Date: 2014-02-20 02:55:08
Summary: Fixed a problem with entities having the character '#' in their name, which messed up scanning of lines in the embedded ACIS file.
Not that this means I know how to debug Tqdcfr or anything.
Thanks Shengyong for pestering me about this.
Affected #: 1 file
diff --git a/src/io/Tqdcfr.cpp b/src/io/Tqdcfr.cpp
index 2c0317b..9362d1e 100644
--- a/src/io/Tqdcfr.cpp
+++ b/src/io/Tqdcfr.cpp
@@ -2321,6 +2321,8 @@ ErrorCode Tqdcfr::read_acis_records( const char* sat_filename )
// get next occurrence of '#' (record terminator)
ret = strchr(&(char_buf[buf_pos]), '#');
+ while (ret && ret+1-&char_buf[0] < bytes_left && *(ret+1) != '\n')
+ ret = strchr(ret+1, '#');
if (NULL != ret) {
// grab the string (inclusive of the record terminator and the line feed) and complete the record
int num_chars = ret-&(char_buf[buf_pos])+2;
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list