VC2013 build fix in resmed_loader

This commit is contained in:
Mark Watkins 2014-07-06 22:44:59 +10:00
parent ffbeb5795c
commit 04dff07933

View File

@ -349,15 +349,10 @@ QString EDFParser::Read(unsigned n)
return ""; return "";
} }
unsigned char buf[n+1]; QByteArray buf(&buffer[pos], n);
memset(buf, 0, n+1); pos+=n;
for (unsigned i = 0; i < n; i++) { return buf.trimmed();
buf[i] = buffer[pos++];
}
QString str = (char *)buf;
return str.trimmed();
} }
bool EDFParser::Parse() bool EDFParser::Parse()
{ {