Merge pull request #395 from Gargaj/patch-1

Null-terminate string
pull/396/head
Kim Kulling 2014-09-26 19:30:47 +02:00
commit c2d13fbd76
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ aiString Read<aiString>(IOStream * stream)
aiString s;
stream->Read(&s.length,4,1);
stream->Read(s.data,s.length,1);
s.data[s.length] = 0;
return s;
}