Skip to content

Commit

Permalink
Fixed truncated material names
Browse files Browse the repository at this point in the history
The previous Unicode library change accidentally trimmed off the last character of SIB material names.
  • Loading branch information
rmitton committed Sep 15, 2017
1 parent 2ab7281 commit 234ffc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/SIBImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static aiString ReadString(StreamReaderLE* stream, uint32_t numWChars)
//ConvertUTF16toUTF8(&start, end, &dest, limit, lenientConversion);
//*dest = '\0';

str[str.size()-1] = '\0';
str[str.size()] = '\0';
// Return the final string.
aiString result = aiString((const char *)&str[0]);
//delete[] str;
Expand Down

0 comments on commit 234ffc0

Please sign in to comment.