fix termination of license text

This commit is contained in:
lperron@google.com
2011-10-04 16:03:55 +00:00
parent abe130e6b1
commit 5c42f5a281

View File

@@ -247,8 +247,9 @@ int Run() {
const int size = licence->Size();
char* const text = new char[size + 1];
licence->Read(text, size);
model_proto.set_licence_text(text);
licence->Close();
text[size] = '\0';
model_proto.set_licence_text(text);
}
// ----- Reporting -----