Fixed truncated material names

The previous Unicode library change accidentally trimmed off the last character of SIB material names.
pull/1437/head
Richard Mitton 2017-09-15 12:39:58 -07:00
parent 2ab72816fb
commit 234ffc0ad6
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ static aiString ReadString(StreamReaderLE* stream, uint32_t numWChars)
//ConvertUTF16toUTF8(&start, end, &dest, limit, lenientConversion); //ConvertUTF16toUTF8(&start, end, &dest, limit, lenientConversion);
//*dest = '\0'; //*dest = '\0';
str[str.size()-1] = '\0'; str[str.size()] = '\0';
// Return the final string. // Return the final string.
aiString result = aiString((const char *)&str[0]); aiString result = aiString((const char *)&str[0]);
//delete[] str; //delete[] str;