Skip to content
Snippets Groups Projects
Commit b99e783a authored by Amorilia's avatar Amorilia
Browse files

niflib: also increase maximum string length to 0x4000 (as recently done in nifskope)

parent 638770e6
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,7 @@ float ReadFloat( istream &in ){
string ReadString( istream &in ) {
unsigned int len = ReadUInt( in );
string out;
if ( len > 10000 )
if ( len > 0x4000 )
throw runtime_error("String too long. Not a NIF file or unsupported format?");
if ( len > 0 ) {
out.resize(len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment