better code for recordio fix

This commit is contained in:
lperron@google.com
2011-09-06 13:32:29 +00:00
parent 9e0f9507cd
commit a6bc225565

View File

@@ -73,8 +73,7 @@ class RecordReader {
return false;
}
buffer[size] = 0;
std::string buf(buffer.get(), size);
proto->ParseFromString(buf);
proto->ParseFromArray(buffer.get(), size);
return true;
}
// Closes the underlying file.