Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAVE: Fix parse error in Associated Data List #309

Merged
merged 5 commits into from Mar 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -53,6 +53,7 @@ public boolean readChunk(RepInfo info) throws IOException {
// this was intended to allow other list structures (don't ask
// why), but any others will be considered non-conforming.
String typeID = module.read4Chars(_dstream);
bytesLeft -= 4;
if (!"adtl".equals (typeID)) {
info.setMessage (new ErrorMessage (MessageConstants.ERR_LIST_TYPE_UNK,
MessageConstants.SUB_MESS_TYPE + typeID,
Expand Down
Expand Up @@ -45,7 +45,7 @@ protected Property readTextProp (WaveModule module, String propName)
bytesLeft -= 4;
byte[] buf = new byte[(int) bytesLeft];
ModuleBase.readByteBuf (_dstream, buf, module);
String txt = new String (buf);
String txt = new String (buf).trim ();
Property[] propArr = new Property[2];
propArr[0] = new Property ("CuePointID",
PropertyType.LONG,
Expand Down