Commit c4c9bff6 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: missing end of string character was causing random bug in LUMImageIO

parent 027c03dc
......@@ -218,6 +218,7 @@ bool LUMImageIO::InternalReadHeaderInformation(std::fstream& file, const bool re
char TypeCode[5];
file.seekg(8, std::ios::beg);
file.read((char*) (TypeCode), 4);
TypeCode[4] = '\0';
int lTaille = CaiGetTypeLum(TypeCode,
lStrTypeImage,
lNbBits,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment