Commit 2c8b3276 authored by Andrea Zoli's avatar Andrea Zoli
Browse files

Fix SDFBlock xml rblock name allocation.

parent 8efb94d6
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -170,7 +170,9 @@ void SDFBlockType::loadType(pugi::xml_node node, const pugi::xml_document& doc,
		std::cout << "Add rblock index for " << rbNode.attribute("name").value();
		std::cout << "Add rblock index for " << rbNode.attribute("name").value();
		std::cout << " level " << level << " phyindex " << indexOfNBlock[i] << " offset " << offset << std::endl;
		std::cout << " level " << level << " phyindex " << indexOfNBlock[i] << " offset " << offset << std::endl;
#endif
#endif
		rblockFilename[i] = (char*) rbNode.attribute("name").value();
        char* str = new char[256];
        strcpy(str, rbNode.attribute("name").value());
		rblockFilename[i] = str;


		nblockmax += maxNumberOfBlock[i];
		nblockmax += maxNumberOfBlock[i];
	}
	}