Cleanup.

git-svn-id: svn://localhost/thomson@15 85ae3b6b-dc8f-4344-a89d-598714f2e4e5
diff --git a/elec/CrO2/software/k5.cpp b/elec/CrO2/software/k5.cpp
index d3c12bc..f57cde2 100644
--- a/elec/CrO2/software/k5.cpp
+++ b/elec/CrO2/software/k5.cpp
@@ -24,6 +24,19 @@
 	memcpy(data, other.data, length);

 }

 

+const K5::Block& K5::Block::operator=(const Block& other)

+{

+	delete[] data;

+		// May not be null ?

+

+	length = other.length;

+	type = other.type;

+	data = new uint8_t[length];

+	memcpy(data, other.data, length);

+

+	return *this;

+}

+

 K5::Block::~Block()

 {

 	delete[] data;