small fixes
This commit is contained in:
@@ -30,11 +30,11 @@ PICloudClient::~PICloudClient() {
|
||||
|
||||
|
||||
bool PICloudClient::openDevice() {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool PICloudClient::closeDevice() {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -396,8 +396,8 @@ PIByteArray & operator >>(PIByteArray & s, PIByteArray & v) {
|
||||
}
|
||||
v.resize(sz);
|
||||
if (sz > 0) {
|
||||
memcpy(v.data(), s.data(), v.size());
|
||||
s.remove(0, v.size());
|
||||
memcpy(v.data(), s.data(), sz);
|
||||
s.remove(0, sz);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user