diff --git a/src/NIF_IO.cpp b/src/NIF_IO.cpp index db0f7b4292f809b737f4553423ba6e180e6ce450..ac357c2bcfa957114f2208905bfbb51a6bab20a1 100644 --- a/src/NIF_IO.cpp +++ b/src/NIF_IO.cpp @@ -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);