Skip to content
Snippets Groups Projects
Commit c4c9bff6 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

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

parent 027c03dc
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
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